home / cp40x

names

5 rows where case_id = 2004001

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3941010 2004001 2004001 plaintiff Tayllor Henry mercer   Tayllor, Henry, mercer 0
3941011 2004001 2004001 defendant ap Parry Thomas gent 656607 656607 ap Parry, Thomas, of Wormebrige, gent 0
3941012 2004001 2004001 defendant ap Thomas John yeoman 627041 627041 ap Thomas, John, of Brodwardyn, yeoman 1
3941013 2004001 2004001 defendant Gllm Nicholas husbandman 656608 656608 Gllm, Nicholas, of Asporton, husbandman 2
3941014 2004001 2004001 defendant Caldoll William husbandman 656609 656609 Caldoll, William, of Docke, husbandman 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 13.973ms