home / cp40x

names

6 rows where case_id = 2365956

✎ 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
5031045 2365956 2365956 plaintiff Purchase Henry grocer 585869 585869 Purchase, Henry, of London, grocer 0
5031046 2365956 2365956 defendant Carrewe Nicholas esq 612566 612566 Carrewe, Nicholas, of Bedyngton, Surrey, esq 0
5031047 2365956 2365956 defendant Phylip Simon, junior chapman 586848 586848 Phylip, Simon, junior, of Northampton, chapman 1
5031048 2365956 2365956 defendant Spaldyng Andrew hosteler 594979 594979 Spaldyng, Andrew, of Gravesend, Kent, hosteler 2
5031049 2365956 2365956 defendant Sparowe Philip chapman 606158 606158 Sparowe, Philip, of Boxford, Suff, chapman 3
5031050 2365956 2365956 defendant Longstoke John chapman 585951 585951 Longstoke, John, of Winchester, chapman 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 20.471ms