home / cp40x

names

4 rows where case_id = 1965140

✎ 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
3823114 1965140 1965140 plaintiff Thorpe John gent 635078 635078 Thorpe, John, of Bryddsall, gent 0
3823115 1965140 1965140 defendant Eure Ralph, senior   635080 635080 Eure, Ralph, senior, of Ayton, Pekerynglythe, Yorks 0
3823116 1965140 1965140 defendant Constable Thomas gent 635081 635081 Constable, Thomas, of Malton, Rydale, Yorks, gent 1
3823117 1965140 1965140 defendant Cowper William clerk 635079 635079 Cowper, William, of Salton, Yorks, clerk 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 15.87ms