home / cp40x

names

5 rows where case_id = 2490703

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
5452742 2490703 2490703 plaintiff Totheby Richard     Totheby, Richard 0
5452743 2490703 2490703 defendant Magelyn Thomas gent 768479 768479 Magelyn, Thomas, of Wy_, gent 0
5452744 2490703 2490703 defendant Thakker Henry   586286 586286 Thakker, Henry, of Boston, cook 1
5452745 2490703 2490703 defendant Woderofe James organ player   Woderofe, James, organ player 2
5452746 2490703 2490703 defendant Percy John husbandman 596437 596437 Percy, John, of Soterton, husbandman 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 13.323ms