home / cp40x

names

5 rows where case_id = 2023787

✎ 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
3997249 2023787 2023787 plaintiff Duke Anthony yeoman 670477 670477 Duke, Anthony, of Metfild, Suff, yeoman 0
3997250 2023787 2023787 defendant Cowper Miles cooper 592164 592164 Cowper, Miles, of Fresyngfeld, Suff, cooper 0
3997251 2023787 2023787 defendant Warde John butcher 670478 670478 Warde, John, of Rednehall, butcher 1
3997252 2023787 2023787 defendant Dogget Robert, senior butcher 586361 586361 Dogget, Robert, senior, of Harleston, butcher 2
3997253 2023787 2023787 defendant Lancaster Robert yeoman 586527 586527 Lancaster, Robert, of Bedyngham, or of Alburgh, 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 9.848ms