home / cp40x

names

5 rows where case_id = 2197136

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4488535 2197136 2197136 plaintiff Stureye John chaplain   Stureye, John, chaplain 0
4488536 2197136 2197136 defendant Poucy Richard   758681 758681 Poucy, Richard, of Farlegh 0
4488537 2197136 2197136 defendant Watte Agnes   762513 762513 Watte, Agnes, of Whystable or Whitstable 1
4488538 2197136 2197136 defendant Coket Thomas   762514 762514 Coket, Thomas, of Gravene 2
4488539 2197136 2197136 defendant Yonge William     Yonge, William 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.043ms