home / cp40x

names

5 rows where case_id = 1979041

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3866546 1979041 1979041 plaintiff Preston John     Preston, John 0
3866547 1979041 1979041 plaintiff Malore Richard mercer 585869 585869 Malore, Richard, of London, mercer 1
3866548 1979041 1979041 defendant Jonys alias Spyser Roger chapman 586208 586208 Jonys alias Spyser, Roger, of Hereford, chapman 0
3866549 1979041 1979041 defendant Byllott Thomas chapman 642214 642214 Byllott, Thomas, of St Mary Burne, Hants, chapman 1
3866550 1979041 1979041 defendant Ayed Robert chapman 604796 604796 Ayed, Robert, of Loddon, Norf, chapman 2

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