home / cp40x

names

6 rows where case_id = 2453740

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: forename

id ▼ case_id role surname forename occupation place_id raw_segment seq
5328955 2453740 2453740 defendant Samwell John gent 606204 606204 Samwell, John, of Cottesford, Oxon, gent 0
5328956 2453740 2453740 defendant Damport Robert gent 779418 779418 together with Damport, Robert, of Mildecombe, gent 1
5328957 2453740 2453740 defendant Smyth Thomas   874006 874006 Smyth, Thomas, of Myldecombe 2
5328958 2453740 2453740 defendant Halyngrige William gent 585990 585990 Halyngrige, William, of Banbury, Oxon, gent 3
5328959 2453740 2453740 defendant Gere Richard gent 607163 607163 Gere, Richard, of Staunton Harecourt, gent 4
5328960 2453740 2453740 defendant Rokys John   585972 585972 Rokys, John, of Abyngdon, Berks 5

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