home / cp40x

names

5 rows where case_id = 2167323

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4408225 2167323 2167323 plaintiff Stephyn Robert gent, attorney   Stephyn, Robert, gent, attorney 0
4408226 2167323 2167323 defendant Stoccombe Aldred merchant 740265 740265 Stoccombe, Aldred, of Bydeford, Devon, merchant 0
4408227 2167323 2167323 defendant Coate John yeoman 587863 587863 Coate, John, of Dunster, Soms, yeoman 1
4408228 2167323 2167323 defendant Downe George merchant 752590 752590 Downe, George, of Tewstocke, Devon, merchant 2
4408229 2167323 2167323 defendant Cottey Anthony husbandman 693427 693427 Cottey, Anthony, of West Buckland, Devon, 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 15.52ms