home / cp40x

names

6 rows where case_id = 2283833

✎ 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
4761129 2283833 2283833 plaintiff Doget Richard   798309 798309 Doget, Richard, of Copdoke 0
4761130 2283833 2283833 plaintiff Rose John   798310 798310 Rose, John, of Little Kerbrook 1
4761131 2283833 2283833 defendant Cok Henry butcher 587414 587414 Cok, Henry, of Thetford, butcher 0
4761132 2283833 2283833 defendant Cosyn James butcher 588583 588583 Cosyn, James, of Caston, butcher 1
4761133 2283833 2283833 defendant Smalwode Stephen   585995 585995 Smalwode, Stephen, of Neweton, vicar 2
4761134 2283833 2283833 defendant Colyns John   798312 798312 Colyns, John, of Thrynyng, bailiff 3

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