home / cp40x

names

6 rows where case_id = 2341926

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4949793 2341926 2341926 plaintiff Norton John     Norton, John 0
4949794 2341926 2341926 defendant Pennys Thomas shoemaker 585934 585934 Pennys, Thomas, of Becclys, shoemaker 0
4949795 2341926 2341926 defendant Noreys John yeoman 826290 826290 Noreys, John, of Halveryate, Norf, yeoman 1
4949796 2341926 2341926 defendant Pepir Reginald clerk 586796 586796 Pepir, Reginald, of Halveryate, clerk 2
4949797 2341926 2341926 defendant Lucas John husbandman 685700 685700 Lucas, John, of Tunstall, Norf, husbandman 3
4949798 2341926 2341926 defendant Gase Alan sherman 586782 586782 Gase, Alan, of Leystoft, sherman 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 14.768ms