home / cp40x

names

5 rows where case_id = 2013037

✎ 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
3966840 2013037 2013037 plaintiff Broke John     Broke, John 0
3966841 2013037 2013037 defendant Hixe William chapman 586528 586528 Hixe, William, of Ware, Herts, chapman 0
3966842 2013037 2013037 defendant Colman Thomas clothier 627860 627860 Colman, Thomas, of Coxsall, Essex, clothier 1
3966843 2013037 2013037 defendant Chyttey Henry clothier 662943 662943 Chyttey, Henry, of Goddlemyn , Surrey, clothier 2
3966844 2013037 2013037 defendant Elestone Lawrence innholder 586470 586470 Elestone, Lawrence, of Colchester, innholder 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 14.197ms