home / cp40x

names

6 rows where case_id = 2322966

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ case_id role surname forename occupation place_id raw_segment seq
4887637 2322966 2322966 plaintiff Constable John knight   Constable, John, knight 0
4887638 2322966 2322966 defendant Grenewod William gent 590548 590548 Grenewod, William, of Thryske, gent 0
4887639 2322966 2322966 defendant Hornby William yeoman 802734 802734 Hornby, William, of Kyrkby Moreshede, yeoman 1
4887640 2322966 2322966 defendant Grenewod John gent 590548 590548 Grenewod, John, of Thryske, gent 2
4887641 2322966 2322966 defendant Oxherd John yeoman 603230 603230 Oxherd, John, of Ricall, yeoman 3
4887642 2322966 2322966 defendant Hornby William yeoman 600457 600457 Hornby, William, of Malton, yeoman 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 5.977ms