home / cp40x

names

5 rows where case_id = 1912241

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3656377 1912241 1912241 plaintiff Case William     Case, William 0
3656378 1912241 1912241 defendant Vinfry John tinker 589001 589001 Vinfry, John, of Maydeston, tinker 0
3656379 1912241 1912241 defendant Langley William yeoman 588182 588182 Langley, William, of Stapilherst, yeoman 1
3656380 1912241 1912241 defendant Yatte William cutler 589001 589001 Yatte, William, of Maydeston, cutler 2
3656381 1912241 1912241 defendant Bate Richard weaver 600332 600332 Bate, Richard, of Yaldyng, weaver 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 16.882ms