home / cp40x

names

5 rows where case_id = 2513586

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
5528983 2513586 2513586 plaintiff Ormond John esq   Ormond, John, esq 0
5528984 2513586 2513586 defendant Langton Cuthburt gent 639667 639667 Langton, Cuthburt, of Shirland, gent 0
5528985 2513586 2513586 defendant Whitworth Richard yeoman 896712 896712 Whitworth, Richard, of Sellerston, Notts, yeoman 1
5528986 2513586 2513586 defendant Heteley John laborer 896713 896713 Heteley, John, of Sellerston, laborer 2
5528987 2513586 2513586 defendant Martyn Thomas chaplain 785147 785147 Martyn, Thomas, of Penkeston, chaplain 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 17.559ms