home / cp40x

names

8 rows where case_id = 2359216

✎ 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
5007948 2359216 2359216 plaintiff Strangways James     Strangways, James 0
5007949 2359216 2359216 defendant Cusseworth John husbandman 589153 589153 Cusseworth, John, of Ruston, husbandman 0
5007950 2359216 2359216 defendant Ruston Thomas husbandman 589153 589153 Ruston, Thomas, of Ruston, husbandman 1
5007951 2359216 2359216 defendant Calthorn William, sen husbandman 589153 589153 Calthorn, William, sen, of Ruston, husbandman 2
5007952 2359216 2359216 defendant Calthorn William jun, of Ruston, husbandman   Calthorn, William, jun, of Ruston, husbandman 3
5007953 2359216 2359216 defendant Walker John husbandman 589153 589153 Walker, John, of Ruston, husbandman 4
5007954 2359216 2359216 defendant Wilkynson John   834254 834254 Wilkynson, John, of Ruston, husg 5
5007955 2359216 2359216 defendant Smyth Thomas husbandman 589153 589153 Smyth, Thomas, of Ruston, husbandman 6

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 14.072ms