home / cp40x

names

5 rows where case_id = 2082735

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4163431 2082735 2082735 plaintiff Tanner John     Tanner, John 0
4163432 2082735 2082735 defendant Morse Robert gent 664126 664126 Morse, Robert, of Lyons Inn, Middx, gent 0
4163433 2082735 2082735 defendant Davye Richard vintner 601056 601056 Davye, Richard, of Lyme Regis, Dorset, vintner 1
4163434 2082735 2082735 defendant Cogan John smith 588633 588633 Cogan, John, of Lyme Regis, smith 2
4163435 2082735 2082735 defendant Perman John gent 650763 650763 Perman, John, of Lincolns Inn, Middx, gent 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 14.517ms