home / cp40x

names

5 rows where case_id = 1989250

✎ 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
3897102 1989250 1989250 plaintiff Welshe Hugh     Welshe, Hugh 0
3897103 1989250 1989250 defendant Robertys Ralph laborer 596960 596960 Robertys, Ralph, of Staundon, laborer 0
3897104 1989250 1989250 defendant Dedebrough Walter husbandman 646195 646195 Dedebrough, Walter, of Erdysley, husbandman 1
3897105 1989250 1989250 defendant Hopton Edward husbandman 647606 647606 Hopton, Edward, of Wynfarton, husbandman 2
3897106 1989250 1989250 defendant Mayos Richard husbandman 587000 587000 Mayos, Richard, of Marden, husbandman 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 6.149ms