home / cp40x

names

5 rows where case_id = 2141132

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ case_id role surname forename occupation place_id raw_segment seq
4332413 2141132 2141132 plaintiff Scott William     Scott, William 0
4332414 2141132 2141132 defendant Foster John yeoman 602777 602777 Foster, John, of Smalley, yeoman 0
4332415 2141132 2141132 defendant Gowley John husbandman 666773 666773 Gowley, John, of West Hallam, husbandman 1
4332416 2141132 2141132 defendant Stafford Margery widow 666773 666773 Stafford, Margery, of West Hallam, widow 2
4332417 2141132 2141132 defendant Knoddinge Thomas husbandman 666773 666773 Knoddinge, Thomas, of West Hallam, husbandman 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 15.526ms