home / cp40x

names

6 rows where case_id = 2238298

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, surname, forename, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4623416 2238298 2238298 plaintiff Mercer David   586958 586958 Mercer, David, of Gloucester 0
4623417 2238298 2238298 defendant Gerveys John mercer 588373 588373 Gerveys, John, of Rosse, mercer 0
4623418 2238298 2238298 defendant Horner John   586958 586958 Horner, John, of Gloucester 1
4623419 2238298 2238298 defendant Danyell John (legal representative)   Danyell, John, executors of 2
4623420 2238298 2238298 defendant Southmede Simon   593027 593027 (Southmede, Simon, of Thornbury 3
4623421 2238298 2238298 defendant Southmede Maud formerly wife of John Danyell   Maud, his wife, formerly wife of John Danyell 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.751ms