home / cp40x

names

6 rows where case_id = 2002082

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ case_id role surname forename occupation place_id raw_segment seq
3935199 2002082 2002082 plaintiff Johnson John     Johnson, John 0
3935200 2002082 2002082 defendant Flynt William clerk 591419 591419 Flynt, William, of Brysley, clerk 0
3935201 2002082 2002082 defendant Hempston William laborer 591419 591419 Hempston, William, of Brysley, laborer 1
3935202 2002082 2002082 defendant Flynt Richard laborer 591419 591419 Flynt, Richard, of Brysley, laborer 2
3935203 2002082 2002082 defendant Flynt Margaret single woman 591419 591419 Flynt, Margaret, of Brysley, single woman 3
3935204 2002082 2002082 defendant Ledeate Thomas laborer 591419 591419 Ledeate, Thomas, of Brysley, laborer 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 15.587ms