home / cp40x

names

6 rows where case_id = 1907402

✎ 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
3640299 1907402 1907402 plaintiff Yorke Thomas esq   Yorke, Thomas, esq 0
3640300 1907402 1907402 defendant Goodale Richard husbandman 600247 600247 Goodale, Richard, of Rammysbury, husbandman 0
3640301 1907402 1907402 defendant Halle John   600247 600247 Halle, John, of Rammysbury, mason 1
3640302 1907402 1907402 defendant Halle Christopher   600247 600247 Halle, Christopher, of Rammysbury, mason 2
3640303 1907402 1907402 defendant Challys Robert husbandman 600247 600247 Challys, Robert, of Rammysbury, husbandman 3
3640304 1907402 1907402 defendant Leveley John laborer 600247 600247 Leveley, John, of Rammysbury, laborer 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 17.114ms