home / cp40x

names

5 rows where case_id = 2018557

✎ 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
3982625 2018557 2018557 plaintiff Sellowes alias Smythe Thomas     Sellowes alias Smythe, Thomas 0
3982626 2018557 2018557 defendant Clyfe Ralph weaver 585947 585947 Clyfe, Ralph, of Hadley, weaver 0
3982627 2018557 2018557 defendant Skewpeye Richard butcher 597854 597854 Skewpeye, Richard, of Stowmarkett, butcher 1
3982628 2018557 2018557 defendant Deveres Robert shoemaker 666837 666837 Deveres, Robert, of Buxall, shoemaker 2
3982629 2018557 2018557 defendant Leman Thomas butcher 630892 630892 Leman, Thomas, of Chelsworth, butcher 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 14.616ms