home / cp40x

names

7 rows where case_id = 2019002

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, occupation, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3983866 2019002 2019002 plaintiff Steven William     Steven, William 0
3983867 2019002 2019002 defendant Myles William yeoman 623032 623032 Myles, William, of Wanesworth, yeoman 0
3983868 2019002 2019002 defendant Orgle John husbandman 588817 588817 Orgle, John, of Streteham, husbandman 1
3983869 2019002 2019002 defendant Johnson William husbandman 604338 604338 Johnson, William, of Putney, husbandman 2
3983870 2019002 2019002 defendant Cooper John smith 667128 667128 Cooper, John, of Dorkinge, smith 3
3983871 2019002 2019002 defendant Lusted William yeoman 667128 667128 Lusted, William, of Dorkinge, yeoman 4
3983872 2019002 2019002 defendant Day Thomas husbandman 667128 667128 Day, Thomas, of Dorkinge, husbandman 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 13.948ms