home / cp40x

names

7 rows where case_id = 2006016

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3947001 2006016 2006016 plaintiff Chapman Nicholas     Chapman, Nicholas 0
3947002 2006016 2006016 defendant Lyfe Thomas yeoman 586228 586228 Lyfe, Thomas, of Watlyngton, yeoman 0
3947003 2006016 2006016 defendant Nele Edmund laborer 586228 586228 Nele, Edmund, of Watlyngton, laborer 1
3947004 2006016 2006016 defendant Lee Richard   586228 586228 Lee, Richard, of Watlyngton, oatmeal maker 2
3947005 2006016 2006016 defendant Careles Thomas laborer 586228 586228 Careles, Thomas, of Watlyngton, laborer 3
3947006 2006016 2006016 defendant Wylson John laborer 586228 586228 Wylson, John, of Watlyngton, laborer 4
3947007 2006016 2006016 defendant Harryson William laborer 586228 586228 Harryson, William, of Watlyngton, laborer 5

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 14.304ms