home / cp40x

names

5 rows where case_id = 2494515

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
5465257 2494515 2494515 plaintiff Warner Thomas grocer 585869 585869 Warner, Thomas, of London, grocer 0
5465258 2494515 2494515 defendant Ruggewyn John gent 586528 586528 Ruggewyn, John, of Ware, Herts, gent 0
5465259 2494515 2494515 defendant Gunston John husbandman 591052 591052 Gunston, John, of Barnet, Herts, husbandman 1
5465260 2494515 2494515 defendant Essex John   606953 606953 Essex, John, of Northampton, Nhants, tallow chandler 2
5465261 2494515 2494515 defendant Dalton Thomas yeoman 614565 614565 Dalton, Thomas, of Chedyngton, Bucks, 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 16.783ms