home / cp40x

names

5 rows where case_id = 2121056

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4274587 2121056 2121056 plaintiff Bate John gent   Bate, John, gent 0
4274588 2121056 2121056 defendant Hasell Ellen widow 587227 587227 Hasell, Ellen, of Upwell, widow 0
4274589 2121056 2121056 defendant Leyton Henry miller 601937 601937 Leyton, Henry, of Ersham, miller 1
4274590 2121056 2121056 defendant Ceymer Richard baker 585936 585936 Ceymer, Richard, of Norwich, baker 2
4274591 2121056 2121056 defendant Brooke Humphrey butcher 600488 600488 Brooke, Humphrey, of Holbiche, Lincs, butcher 3

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE names (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    case_id INTEGER NOT NULL REFERENCES cases(id) ON DELETE CASCADE,
    role TEXT NOT NULL CHECK (role IN ('plaintiff', 'defendant')),
    surname TEXT NOT NULL,
    forename TEXT,
    occupation TEXT,
    place_id INTEGER REFERENCES places(id),
    raw_segment TEXT NOT NULL,
    seq INTEGER NOT NULL DEFAULT 0
);
CREATE INDEX idx_names_case_id ON names(case_id);
CREATE INDEX idx_names_surname ON names(surname);
CREATE INDEX idx_names_place_id ON names(place_id);
CREATE INDEX idx_names_role_surname ON names(role, surname);
Powered by Datasette · Queries took 17.517ms