home / cp40x

names

5 rows where case_id = 2162479

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4393645 2162479 2162479 plaintiff Gawdye Henry esq, sheriff   Gawdye, Henry, esq, sheriff 0
4393646 2162479 2162479 defendant Brodhouse Roger clerk 601387 601387 Brodhouse, Roger, of Moulton, clerk 0
4393647 2162479 2162479 defendant Johnson William glover 588732 588732 Johnson, William, of Acle, glover 1
4393648 2162479 2162479 defendant Hudson James husbandman 590539 590539 Hudson, James, of Hethersett, husbandman 2
4393649 2162479 2162479 defendant Turner Christopher laborer 586230 586230 Turner, Christopher, of Fyncham, laborer 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 13.321ms