home / cp40x

names

6 rows where case_id = 2259598

✎ 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
4680750 2259598 2259598 plaintiff Lupton John     Lupton, John 0
4680751 2259598 2259598 defendant Tunstall Thomas husbandman 650666 650666 Tunstall, Thomas, of Apulton, husbandman 0
4680752 2259598 2259598 defendant Loweson John husbandman 670117 670117 Loweson, John, of Stepulton, husbandman 1
4680753 2259598 2259598 defendant Preston John husbandman 783133 783133 Preston, John, of Snellesthwayte, husbandman 2
4680754 2259598 2259598 defendant Silston John husbandman 783134 783134 Silston, John, of Thymylby, husbandman 3
4680755 2259598 2259598 defendant Barton John husbandman 783135 783135 Barton, John, of Otryngton, husbandman 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 8.437ms