home / cp40x

names

7 rows where case_id = 2285003

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ case_id role surname forename occupation place_id raw_segment seq
4764904 2285003 2285003 plaintiff Holand John     Holand, John 0
4764905 2285003 2285003 defendant Robyn Richard husbandman 798985 798985 Robyn, Richard, of Hertyston, husbandman 0
4764906 2285003 2285003 defendant Hertyston John husbandman 798985 798985 Hertyston, John, of Hertyston, husbandman 1
4764907 2285003 2285003 defendant Hertyston Richard thatcher 798985 798985 Hertyston, Richard, of Hertyston, thatcher 2
4764908 2285003 2285003 defendant atte Fen John husbandman 596727 596727 atte Fen, John, of Fen, husbandman 3
4764909 2285003 2285003 defendant Hertyston John   798985 798985 Hertyston, John, of Hertyston, mason 4
4764910 2285003 2285003 defendant Thomas John husbandman 798987 798987 Thomas, John, of Wyllenhede, 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 7.251ms