home / cp40x

names

6 rows where case_id = 2192438

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4473758 2192438 2192438 plaintiff Darcy Philip knight   Darcy, Philip, knight 0
4473759 2192438 2192438 defendant Forester Richard   755430 755430 Forester, Richard, of Baynesburgh 0
4473760 2192438 2192438 defendant Hayles William   587250 587250 Hayles, William, of Coryngham 1
4473761 2192438 2192438 defendant Milner William   587250 587250 Milner, William, of Coryngham 2
4473762 2192438 2192438 defendant Skynner Richard   587250 587250 Skynner, Richard, of Coryngham 3
4473763 2192438 2192438 defendant Kayton Richard butcher   Kayton, Richard, butcher 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 14.909ms