home / cp40x

names

6 rows where case_id = 1922450

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3688166 1922450 1922450 plaintiff Cowpar John     Cowpar, John 0
3688167 1922450 1922450 defendant Brenner Hugh yeoman 593953 593953 Brenner, Hugh, of Tutbury, yeoman 0
3688168 1922450 1922450 defendant Pertriche Hugh chaplain 586459 586459 Pertriche, Hugh, of Stoke, chaplain 1
3688169 1922450 1922450 defendant Grotton Margery widow 587516 587516 Grotton, Margery, of Stafford, widow 2
3688170 1922450 1922450 defendant Cowper Alexander   611377 611377 Cowper, Alexander, of Forbregge, wright 3
3688171 1922450 1922450 defendant Fernyall Christopher shoemaker 610325 610325 Fernyall, Christopher, of Gnosall, shoemaker 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.041ms