home / cp40x

names

6 rows where case_id = 2067644

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ case_id role surname forename occupation place_id raw_segment seq
4120597 2067644 2067644 plaintiff Bassett William esq   Bassett, William, esq 0
4120598 2067644 2067644 defendant Smythe John smith 679637 679637 Smythe, John, of Cowbridge, Glamorgan, smith 0
4120599 2067644 2067644 defendant Knappe Rice tanner 697648 697648 Knappe, Rice, of Cowbridge, tanner 1
4120600 2067644 2067644 defendant Rees Edmund yeoman 697649 697649 Rees, Edmund, of Waterton, Glamorgan, yeoman 2
4120601 2067644 2067644 defendant ap Jevan Gronowe yeoman 697650 697650 ap Jevan, Gronowe, of Coychurche, Glamorgan, yeoman 3
4120602 2067644 2067644 defendant ap Jevan Edmund yeoman 619415 619415 ap Jevan, Edmund, of Waterton, yeoman 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 16.996ms