home / cp40x

names

6 rows where case_id = 1985550

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3885932 1985550 1985550 plaintiff Boughan John     Boughan, John 0
3885933 1985550 1985550 defendant Hardwyk James butcher 645513 645513 Hardwyk, James, of Braunceborow, butcher 0
3885934 1985550 1985550 defendant Erle Henry butcher 645487 645487 Erle, Henry, of Sherehampton, butcher 1
3885935 1985550 1985550 defendant Masserley Thomas butcher 609919 609919 Masserley, Thomas, of Rodborowe, butcher 2
3885936 1985550 1985550 defendant Dull Thomas butcher 604586 604586 Dull, Thomas, of Durresley, butcher 3
3885937 1985550 1985550 defendant Erwyth William husbandman 591770 591770 Erwyth, William, of Stapulton, 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 9.868ms