home / cp40x

names

5 rows where case_id = 1914128

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3662315 1914128 1914128 plaintiff Maxwell William     Maxwell, William 0
3662316 1914128 1914128 defendant Cloys John yeoman 605608 605608 Cloys, John, of Helay in Swaledale, yeoman 0
3662317 1914128 1914128 defendant Clois Ralph yeoman 605608 605608 Clois, Ralph, of Helay in Swaledale, yeoman 1
3662318 1914128 1914128 defendant Dowgell Thomas yeoman 605609 605609 Dowgell, Thomas, of Hertewich, in Nidder dale, yeoman 2
3662319 1914128 1914128 defendant Bentley John yeoman 605610 605610 Bentley, John, of Pannell, yeoman 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.092ms