home / cp40x

names

5 rows where case_id = 2093424

✎ 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
4193886 2093424 2093424 plaintiff Byrd William     Byrd, William 0
4193887 2093424 2093424 defendant Leigh Nicholas chapman 595677 595677 Leigh, Nicholas, of Totnes, Devon, chapman 0
4193888 2093424 2093424 defendant Wattes William yeoman 712452 712452 Wattes, William, of Teynton Magna, Glos, yeoman 1
4193889 2093424 2093424 defendant Wattes Thomas yeoman 663039 663039 Wattes, Thomas, of Dymocke, Glos, yeoman 2
4193890 2093424 2093424 defendant Kent James yeoman 588305 588305 Kent, James, of Welles, Soms, yeoman 3

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.986ms