home / cp40x

names

5 rows where case_id = 2125132

✎ 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
4286236 2125132 2125132 plaintiff Easte Robert     Easte, Robert 0
4286237 2125132 2125132 plaintiff Skidmore William     Skidmore, William 1
4286238 2125132 2125132 defendant Missenden Robert smith 730083 730083 Missenden, Robert, of Fleetwood, Beds, smith 0
4286239 2125132 2125132 defendant Godfrey Ciprian smith 585970 585970 Godfrey, Ciprian, of Oxford, smith 1
4286240 2125132 2125132 defendant Skynner Thomas   589020 589020 Skynner, Thomas, of Magna Marlowe, Bucks, barge man 2

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