home / cp40x

names

6 rows where case_id = 2071610

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ case_id role surname forename occupation place_id raw_segment seq
4131568 2071610 2071610 plaintiff Lee William     Lee, William 0
4131569 2071610 2071610 defendant Thewles Richard clothier 610607 610607 Thewles, Richard, of Huddersfeld, clothier 0
4131570 2071610 2071610 defendant Marshe John clothier 695635 695635 Marshe, John, of Chidsell, clothier 1
4131571 2071610 2071610 defendant Clayton William yeoman 695635 695635 Clayton, William, of Chidsell, yeoman 2
4131572 2071610 2071610 defendant Haighe George husbandman 700023 700023 Haighe, George, of Lynlay, Huddersfeld, husbandman 3
4131573 2071610 2071610 defendant Woode John husbandman 700024 700024 Woode, John, of Linley, husbandman 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 16.665ms