home / cp40x

names

6 rows where case_id = 2315689

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, surname, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4863910 2315689 2315689 plaintiff Etton George     Etton, George 0
4863911 2315689 2315689 defendant Bagthwayt John yeoman 637117 637117 Bagthwayt, John, of Rosdale, yeoman 0
4863912 2315689 2315689 defendant Bagthwayt William yeoman 637117 637117 Bagthwayt, William, of Rosdale, yeoman 1
4863913 2315689 2315689 defendant Allerstane John yeoman 637117 637117 Allerstane, John, of Rosdale, yeoman 2
4863914 2315689 2315689 defendant Bagot Alan yeoman 637117 637117 Bagot, Alan, of Rosdale, yeoman 3
4863915 2315689 2315689 defendant Bank John yeoman 637117 637117 Bank, John, of Rosdale, 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 14.89ms