home / cp40x

names

6 rows where case_id = 2312966

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4855163 2312966 2312966 plaintiff Amelyn John     Amelyn, John 0
4855164 2312966 2312966 defendant Bechamp Robert   720751 720751 Bechamp, Robert, of Folkerby, Yorks 0
4855165 2312966 2312966 defendant Magson Richard husbandman 771289 771289 Magson, Richard, of Alkebarowe, husbandman 1
4855166 2312966 2312966 defendant Turnour Richard husbandman 813284 813284 Turnour, Richard, of Dodethorp, husbandman 2
4855167 2312966 2312966 defendant Aslotte John husbandman 585932 585932 Aslotte, John, of Kingston on Hull, husbandman 3
4855168 2312966 2312966 defendant Symson John husbandman 813285 813285 Symson, John, of Hoke, Yorks, husbandman 4

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