home / cp40x

names

6 rows where case_id = 2284571

✎ 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
4763513 2284571 2284571 plaintiff Grave or Grane John   589796 589796 Grave or Grane, John, of Leek 0
4763514 2284571 2284571 defendant House Richard husbandman 589796 589796 House, Richard, of Leek, husbandman 0
4763515 2284571 2284571 defendant Frankys Ralph husbandman 589796 589796 Frankys, Ralph, of Leek, husbandman 1
4763516 2284571 2284571 defendant Alanson William fishmonger 589796 589796 Alanson, William, of Leek, fishmonger 2
4763517 2284571 2284571 defendant Dawe John   589796 589796 Dawe, John, of Leek, fish monger 3
4763518 2284571 2284571 defendant Dawe Thomas   607914 607914 Dawe, Thomas, of Wrangle, fish monger 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.516ms