home / cp40x

names

6 rows where case_id = 2500982

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
5486907 2500982 2500982 plaintiff Sparke William draper 585869 585869 Sparke, William, of London, draper 0
5486908 2500982 2500982 defendant Hill Richard merchant 585932 585932 Hill, Richard, of Kingston on Hull, merchant 0
5486909 2500982 2500982 defendant Fretam John carrier 586067 586067 Fretam, John, of York, carrier 1
5486910 2500982 2500982 defendant Metcalf John yeoman 639256 639256 Metcalf, John, of Hengham, Norf, yeoman 2
5486911 2500982 2500982 defendant Well William vintner 586067 586067 Well, William, of York, vintner 3
5486912 2500982 2500982 defendant Forster William ostler 892416 892416 Forster, William, of Parva Waslyngham, Norf, ostler 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 14.997ms