home / cp40x

names

5 rows where case_id = 1945386

✎ 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
3760812 1945386 1945386 plaintiff Donne or Doune John clerk   Donne or Doune, John, clerk 0
3760813 1945386 1945386 defendant Cowper Richard dyer 588667 588667 Cowper, Richard, of Stratford on Avon, dyer 0
3760814 1945386 1945386 defendant Moneley Richard glover 588667 588667 Moneley, Richard, of Stratford on Avon, glover 1
3760815 1945386 1945386 defendant Sale Henry husbandman 589863 589863 Sale, Henry, of Welcombe, husbandman 2
3760816 1945386 1945386 defendant Swanwyk John yeoman 588667 588667 Swanwyk, John, of Stratford on Avon, yeoman 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.827ms