home / cp40x

names

6 rows where case_id = 2004073

✎ 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
3941233 2004073 2004073 plaintiff Toly Thomas     Toly, Thomas 0
3941234 2004073 2004073 defendant Durrant John husbandman 656654 656654 Durrant, John, of Morleys Wanton, husbandman 0
3941235 2004073 2004073 defendant Goodson John yeoman 623412 623412 Goodson, John, of Creke, yeoman 1
3941236 2004073 2004073 defendant Tollop William yeoman 635731 635731 Tollop, William, of Hayle, yeoman 2
3941237 2004073 2004073 defendant Johnson Lawrence husbandman 602304 602304 Johnson, Lawrence, of Swaffham Market, husbandman 3
3941238 2004073 2004073 defendant Prest Agnes widow 604412 604412 Prest, Agnes, of Great Massyngham, widow 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 18.025ms