home / cp40x

names

6 rows where case_id = 1979780

✎ 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
3868722 1979780 1979780 plaintiff Themilthorp Robert     Themilthorp, Robert 0
3868723 1979780 1979780 defendant Michell Thomas yeoman 642568 642568 Michell, Thomas, of Casewyke, yeoman 0
3868724 1979780 1979780 defendant Mychelle John husbandman 613529 613529 Mychelle, John, of Redlyngton, husbandman 1
3868725 1979780 1979780 defendant Gunby Richard gent 642569 642569 Gunby, Richard, of Slowly, gent 2
3868726 1979780 1979780 defendant Stubberd John husbandman 589679 589679 Stubberd, John, of Knapton, husbandman 3
3868727 1979780 1979780 defendant Scottowe William   623522 623522 Scottowe, William, of Swanton Abbots, worsted weaver 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 12.971ms