home / cp40x

names

5 rows where case_id = 2019912

✎ 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
3986493 2019912 2019912 plaintiff Wheatlie Thomas ironmonger 586117 586117 Wheatlie, Thomas, of Coventry, ironmonger 0
3986494 2019912 2019912 defendant Wall John yeoman 667806 667806 Wall, John, of Chadsleye, Worcs, yeoman 0
3986495 2019912 2019912 defendant Smythe John   667807 667807 Smythe, John, of Hylpowle, Worcs, scythe smith 1
3986496 2019912 2019912 defendant Ferne William mercer 604201 604201 Ferne, William, of Kethermyster, Worcs, mercer 2
3986497 2019912 2019912 defendant Westwood Roger   667808 667808 Westwood, Roger, of Chadsleye, scythe smith 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 18.218ms