home / cp40x

names

5 rows where case_id = 2456062

✎ 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
5336759 2456062 2456062 plaintiff Hemyngton John     Hemyngton, John 0
5336760 2456062 2456062 defendant Bakewell John yeoman 593628 593628 Bakewell, John, of Westonyng, yeoman 0
5336761 2456062 2456062 defendant Badman John laborer 593628 593628 Badman, John, of Westonyng, laborer 1
5336762 2456062 2456062 defendant Dyer John laborer 593628 593628 Dyer, John, of Westonyng, laborer 2
5336763 2456062 2456062 defendant Dey John laborer 593628 593628 Dey, John, of Westonyng, laborer 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.838ms