home / cp40x

names

5 rows where case_id = 2313839

✎ 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
4857906 2313839 2313839 plaintiff Bowes William merchant 586067 586067 Bowes, William, of York, merchant 0
4857907 2313839 2313839 defendant Raper William dyer 813667 813667 Raper, William, of Elnet juxta Durham, dyer 0
4857908 2313839 2313839 defendant Raper Thomas tailor 813667 813667 Raper, Thomas, of Elnet juxta Durham, tailor 1
4857909 2313839 2313839 defendant Pakman William smith 813667 813667 Pakman, William, of Elnet juxta Durham, smith 2
4857910 2313839 2313839 defendant Baker William dyer 604337 604337 Baker, William, of Durham, dyer 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 14.598ms