home / cp40x

names

6 rows where case_id = 2391597

✎ 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
5117649 2391597 2391597 plaintiff Prendergyst Thomas   773204 773204 Prendergyst, Thomas, of Worston 0
5117650 2391597 2391597 defendant Sayer Simon tucker 589035 589035 Sayer, Simon, of Lyneham, tucker 0
5117651 2391597 2391597 defendant Sayer John brewer 586834 586834 Sayer, John, of Plymmouth, brewer 1
5117652 2391597 2391597 defendant Davy Richard soaper 586834 586834 Davy, Richard, of Plymmouth, soaper 2
5117653 2391597 2391597 defendant Whitlegh John laborer 586834 586834 Whitlegh, John, of Plymmouth, laborer 3
5117654 2391597 2391597 defendant Morgan Thomas laborer 591756 591756 Morgan, Thomas, of Dunston, 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 13.998ms