home / cp40x

names

6 rows where case_id = 2005031

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, occupation, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3944054 2005031 2005031 plaintiff Bakon John grocer 585936 585936 Bakon, John, of Norwich, grocer 0
3944055 2005031 2005031 defendant Harward Thomas gent 587387 587387 Harward, Thomas, of Boton, gent 0
3944056 2005031 2005031 defendant Salysburey John clerk 586846 586846 Salysburey, John, of Lincoln, clerk 1
3944057 2005031 2005031 defendant Lacey Stephen of Hoxon Suff, gent   Lacey, Stephen of Hoxon, Suff, gent 2
3944058 2005031 2005031 defendant Croke Thomas gent 585936 585936 Croke, Thomas, of Norwich, gent 3
3944059 2005031 2005031 defendant Person William tailor 657369 657369 Person, William, of Trowse juxta Norwich, tailor 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 15.261ms