home / cp40x

names

5 rows where case_id = 2008161

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ case_id role surname forename occupation place_id raw_segment seq
3953129 2008161 2008161 plaintiff Hungerford John esq   Hungerford, John, esq 0
3953130 2008161 2008161 defendant Selwyn Richard husbandman 659608 659608 Selwyn, Richard, of Brokenborowe, Wilts, husbandman 0
3953131 2008161 2008161 defendant Beyser Robert husbandman 598052 598052 Beyser, Robert, of Brokenborowe, husbandman 1
3953132 2008161 2008161 defendant Walker John weaver 598052 598052 Walker, John, of Brokenborowe, weaver 2
3953133 2008161 2008161 defendant Mylles William yeoman 608681 608681 Mylles, William, of Lee, Wilts, yeoman 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.537ms