home / cp40x

names

5 rows where case_id = 2017004

✎ 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
3978328 2017004 2017004 plaintiff Maye Richard merchant tailor 585869 585869 Maye, Richard, of London, merchant tailor 0
3978329 2017004 2017004 defendant Colles Alexander yeoman 665770 665770 Colles, Alexander, of Stanforde Ryvers, Essex, yeoman 0
3978330 2017004 2017004 defendant Blagrove Simon yeoman 665771 665771 Blagrove, Simon, of Highworthe, Wilts, yeoman 1
3978331 2017004 2017004 defendant Rawlyns John yeoman 665772 665772 Rawlyns, John, of Monkton, Soms, yeoman 2
3978332 2017004 2017004 defendant Sheldon Edward gent 665773 665773 Sheldon, Edward, of Wellgollet , Essex, gent 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 16.199ms