home / cp40x

names

6 rows where case_id = 2418703

✎ 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
5210169 2418703 2418703 plaintiff Styward John     Styward, John 0
5210170 2418703 2418703 defendant Rous Robert tailor 798301 798301 Rous, Robert, of Chesterton, Cambs, tailor 0
5210171 2418703 2418703 defendant Broun Thomas tailor 585936 585936 Broun, Thomas, of Norwich, tailor 1
5210172 2418703 2418703 defendant Thorn Peter mercer 781716 781716 Thorn, Peter, of Haselyngfeld, Cambs, mercer 2
5210173 2418703 2418703 defendant Denertse George sheerman 588081 588081 Denertse, George, of Cambridge, sheerman 3
5210174 2418703 2418703 defendant Monter Baldwin dutchman 608698 608698 Monter, Baldwin, of Faversham, Kent, dutchman 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 13.896ms