home / cp40x

names

6 rows where case_id = 2227046

✎ 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
4586002 2227046 2227046 plaintiff Haylok John   772166 772166 Haylok, John, of Bernardeston 0
4586003 2227046 2227046 defendant Ranfold Simon     Ranfold, Simon 0
4586004 2227046 2227046 defendant smyth William   644734 644734 smyth, William, of Stepyl Bumpsted 1
4586005 2227046 2227046 defendant Hakoun John miller   Hakoun, John, miller 2
4586006 2227046 2227046 defendant Sorell John   605507 605507 Sorell, John, of Great Wrattyng 3
4586007 2227046 2227046 defendant Parker John   609763 609763 Parker, John, of Hunden 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.666ms