home / cp40x

names

6 rows where case_id = 2398005

✎ 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
5139377 2398005 2398005 plaintiff Skolehous Nicholas mercer 836559 836559 Skolehous, Nicholas, of Wurthstede, mercer 0
5139378 2398005 2398005 defendant Sowere John mason   Sowere, John, mason 0
5139379 2398005 2398005 defendant Cose William   586362 586362 Cose, William, of bungey, Suff, coverlet weaver 1
5139380 2398005 2398005 defendant Reed Henry turner 851879 851879 Reed, Henry, of Worthsted, Norf, turner 2
5139381 2398005 2398005 defendant Wattes William butcher 851880 851880 Wattes, William, of Surthstede, butcher 3
5139382 2398005 2398005 defendant Monford Gilbert   793114 793114 Monford, Gilbert, of Wurthsted, shoe maker 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 7.884ms