home / cp40x

names

6 rows where case_id = 2247057

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4653601 2247057 2247057 plaintiff Benet Robert     Benet, Robert 0
4653602 2247057 2247057 defendant Doggeson William   635077 635077 Doggeson, William, of Scroby, wright 0
4653603 2247057 2247057 defendant Marton John laborer 635077 635077 Marton, John, of Scroby, laborer 1
4653604 2247057 2247057 defendant Mason Thomas   635077 635077 Mason, Thomas, of Scroby, mason 2
4653605 2247057 2247057 defendant Basyngbourn William   635077 635077 Basyngbourn, William, of Scroby, wright 3
4653606 2247057 2247057 defendant Grace Robert   635077 635077 Grace, Robert, of Scroby, wright 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 14.905ms