home / cp40x

names

6 rows where case_id = 1973438

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3849479 1973438 1973438 plaintiff Long John alderman 585869 585869 Long, John, of London, alderman 0
3849480 1973438 1973438 defendant Thorpe William innholder 630670 630670 Thorpe, William, of Ipwswich, innholder 0
3849481 1973438 1973438 defendant Man John innholder 632884 632884 Man, John, of Stowmarkett, Suff, innholder 1
3849482 1973438 1973438 defendant Botolff John gent 630064 630064 Botolff, John, of Hemmysby, Norf, gent 2
3849483 1973438 1973438 defendant Akers John mariner 595389 595389 Akers, John, of Blakeney, Norf, mariner 3
3849484 1973438 1973438 defendant Barowe Robert innholder 588727 588727 Barowe, Robert, of Chelmysford, Essex, innholder 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.14ms