home / cp40x

names

5 rows where case_id = 2020182

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3987238 2020182 2020182 plaintiff Wylkyns Christopher haberdasher 585869 585869 Wylkyns, Christopher, of London, haberdasher 0
3987239 2020182 2020182 defendant Aslabby Ralph gent 606626 606626 Aslabby, Ralph, of Richmond, Yorks, gent 0
3987240 2020182 2020182 defendant Braydford Richard chapman 666491 666491 Braydford, Richard, of Stoke Goldyngton, Bucks, chapman 1
3987241 2020182 2020182 defendant Hopeworth John chapman 610200 610200 Hopeworth, John, of Hope, Derbs, chapman 2
3987242 2020182 2020182 defendant Cleasby Asendsus chapman 667992 667992 Cleasby, Asendsus, of Morton, Yorks, chapman 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 16.121ms