home / cp40x

names

4 rows where case_id = 2011496

✎ 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
3962558 2011496 2011496 plaintiff Wheatley Thomas ironmonger 586117 586117 Wheatley, Thomas, of Coventry, ironmonger 0
3962559 2011496 2011496 defendant Slene or Sleve John fishmonger 590430 590430 Slene or Sleve, John, of Lichfeld, fishmonger 0
3962560 2011496 2011496 defendant Lowthare Thomas tailor 587052 587052 Lowthare, Thomas, of Beverley, Yorks, tailor 1
3962561 2011496 2011496 defendant Elles Thomas smith 586070 586070 Elles, Thomas, of Beverley, smith 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 16.929ms