home / cp40x

names

5 rows where case_id = 2092321

✎ 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
4190730 2092321 2092321 plaintiff Altham John     Altham, John 0
4190731 2092321 2092321 defendant Well Andrew chapman 594021 594021 Well, Andrew, of Yevell, Soms, chapman 0
4190732 2092321 2092321 defendant Coken Francis merchant 597051 597051 Coken, Francis, of Kynton, Herts, merchant 1
4190733 2092321 2092321 defendant Bridgman Anthony gent 585869 585869 Bridgman, Anthony, of London, gent 2
4190734 2092321 2092321 defendant Raynor Michael chapman 711813 711813 Raynor, Michael, of Hillington, Middx, chapman 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 15.026ms