home / cp40x

names

5 rows where case_id = 2097022

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, surname, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4204206 2097022 2097022 plaintiff Mery Richard clerk   Mery, Richard, clerk 0
4204207 2097022 2097022 defendant Lewes David Doctor of Law   Lewes, David, Doctor of Law, executors of 0
4204208 2097022 2097022 defendant Lewes William, senior esq 714481 714481 (Lewes, William, senior, of Aburgavenny, Monmouth, esq 1
4204209 2097022 2097022 defendant Baker William gent 662247 662247 Baker, William, of Aburgavenny, gent 2
4204210 2097022 2097022 defendant Wynter Walter gent 595017 595017 Wynter, Walter, of Inner Temple, London, 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 12.683ms