home / cp40x

names

5 rows where case_id = 2006400

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3948095 2006400 2006400 plaintiff Crane Thomas     Crane, Thomas 0
3948096 2006400 2006400 defendant Fenne John gent 658367 658367 Fenne, John, of Greneskore juxta Leistofte, Suff, gent 0
3948097 2006400 2006400 defendant Wodehous John, junior gent 586519 586519 Wodehous, John, junior, of Blyklyng, gent 1
3948098 2006400 2006400 defendant Fytlyng Lawrence husbandman 586664 586664 Fytlyng, Lawrence, of Kymberley, husbandman 2
3948099 2006400 2006400 defendant Brite Norwich tailor   Brite, Norwich, tailor 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.204ms