home / cp40x

names

7 rows where case_id = 2534018

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, surname, forename, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
5597155 2534018 2534018 plaintiff Cook John   585936 585936 Cook, John, of Norwich 0
5597156 2534018 2534018 plaintiff Cook Henry     Cook, Henry 1
5597157 2534018 2534018 plaintiff Cook Thomas     Cook, Thomas 2
5597158 2534018 2534018 plaintiff Cook William son of Cook, Robert   Cook, William, son of Cook, Robert 3
5597159 2534018 2534018 plaintiff Poty John clerk 585936 585936 Poty, John, of Norwich, clerk 4
5597160 2534018 2534018 defendant Lawter John yeoman 602445 602445 Lawter, John, of Weybred, yeoman 0
5597161 2534018 2534018 defendant Todde John husbandman 602445 602445 Todde, John, of Weybred, husbandman 1

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 13.882ms