home / cp40x

names

4 rows where case_id = 1937154

✎ 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
3734895 1937154 1937154 plaintiff Grey Edward knight, sheriff of Staffs   Grey, Edward, knight, sheriff of Staffs 0
3734896 1937154 1937154 defendant Couper Thomas yeoman 620296 620296 Couper, Thomas, of Alriche, yeoman 0
3734897 1937154 1937154 defendant Stokes John yeoman 620297 620297 Stokes, John, of Weddisfeld, yeoman 1
3734898 1937154 1937154 defendant Wryght Christopher yeoman 620298 620298 Wryght, Christopher, of Fossebroke, yeoman 2

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.746ms