home / cp40x

names

6 rows where case_id = 1989427

✎ 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
3897657 1989427 1989427 plaintiff Wright John     Wright, John 0
3897658 1989427 1989427 defendant Nykker Thomas carver 647688 647688 Nykker, Thomas, of Hendgrave, Suff, carver 0
3897659 1989427 1989427 defendant Stede Anne widow 594337 594337 Stede, Anne, of Asshyll, widow 1
3897660 1989427 1989427 defendant Robynson Elwin husbandman 647689 647689 Robynson, Elwin, of Sutherey, husbandman 2
3897661 1989427 1989427 defendant Blaklok Lawrence clerk 641530 641530 Blaklok, Lawrence, of Attylbryge, clerk 3
3897662 1989427 1989427 defendant Lether Alan husbandman 618231 618231 Lether, Alan, of Swaffham Markett, husbandman 4

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.801ms