home / cp40x

names

6 rows where case_id = 1953928

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, surname, forename, occupation, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3787661 1953928 1953928 plaintiff Russell John esq   Russell, John, esq 0
3787662 1953928 1953928 defendant Bonde William gent 587665 587665 Bonde, William, of Kyngeston on Thames, gent 0
3787663 1953928 1953928 defendant Grene Thomas, junior husbandman 629341 629341 Grene, Thomas, junior, of Aschestede, husbandman 1
3787664 1953928 1953928 defendant Man Thomas husbandman 629341 629341 Man, Thomas, of Aschestede, husbandman 2
3787665 1953928 1953928 defendant Hall Thomas laborer 629341 629341 Hall, Thomas, of Aschestede, laborer 3
3787666 1953928 1953928 defendant Hall Geoffrey laborer 629342 629342 Hall, Geoffrey, of Adworth, laborer 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 17.014ms