home / cp40x

names

6 rows where case_id = 2301227

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, surname, forename, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4816409 2301227 2301227 plaintiff Macworth John clerk   Macworth, John, clerk 0
4816410 2301227 2301227 defendant Aleyn William yeoman 591949 591949 Aleyn, William, of Thorp, yeoman 0
4816411 2301227 2301227 defendant Alynson Thomas yeoman 806771 806771 Alynson, Thomas, of Underwode in Assheborne, yeoman 1
4816412 2301227 2301227 defendant Toples William husbandman 760703 760703 Toples, William, of Perwych, husbandman 2
4816413 2301227 2301227 defendant Aleyn John yeoman 619411 619411 Aleyn, John, of Assheborne, yeoman 3
4816414 2301227 2301227 defendant Bagger John yeoman 625178 625178 Bagger, John, of Assheborn, yeoman 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 7.878ms