home / cp40x

names

6 rows where case_id = 1907378

✎ 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
3640212 1907378 1907378 plaintiff Yerneley John     Yerneley, John 0
3640213 1907378 1907378 defendant Halshall Henry   600229 600229 Halshall, Henry, of Halshall, Lancs, knight 0
3640214 1907378 1907378 defendant Towneley John   600227 600227 Towneley, John, of Townley, Lancs, knight 1
3640215 1907378 1907378 defendant Aghton Hugh esq 600228 600228 Aghton, Hugh, of North Meles, Lancs, esq 2
3640216 1907378 1907378 defendant Langton Gilbert esq 600230 600230 Langton, Gilbert, of Lawe, lancs, esq 3
3640217 1907378 1907378 defendant Farington Henry esq 600231 600231 Farington, Henry, of Farington, Lancs, esq 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 12.451ms