home / cp40x

names

5 rows where case_id = 2381316

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ case_id role surname forename occupation place_id raw_segment seq
5082649 2381316 2381316 plaintiff Dryland Stephen   587374 587374 Dryland, Stephen, of Lewes 0
5082650 2381316 2381316 defendant Colyn William husbandman 614998 614998 Colyn, William, of West Fyrle, husbandman 0
5082651 2381316 2381316 defendant Cole Richard chapman 617205 617205 Cole, Richard, of Clive juxta Lewes, chapman 1
5082652 2381316 2381316 defendant Playsted John clerk 587374 587374 Playsted, John, of Lewes, clerk 2
5082653 2381316 2381316 defendant Atherston William clerk 607283 607283 Atherston, William, of Suth Mallyng, clerk 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 13.442ms