home / cp40x

names

6 rows where case_id = 2355452

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4995342 2355452 2355452 plaintiff Geffray Simon   586471 586471 Geffray, Simon, of Aylesham, brass worker 0
4995343 2355452 2355452 defendant Wylles John yeoman 761744 761744 Wylles, John, of Great Ryburgh, yeoman 0
4995344 2355452 2355452 defendant Cay John husbandman 587672 587672 Cay, John, of Horsted, husbandman 1
4995345 2355452 2355452 defendant Baron Thomas butcher 832336 832336 Baron, Thomas, of Great Rybour, butcher 2
4995346 2355452 2355452 defendant Palmer John tinker 590844 590844 Palmer, John, of Lyng, tinker 3
4995347 2355452 2355452 defendant Smyth Robert husbandman 588930 588930 Smyth, Robert, of Honyng, husbandman 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 26.784ms