home / cp40x

names

6 rows where case_id = 2410797

✎ 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
5183086 2410797 2410797 plaintiff Coucher John     Coucher, John 0
5183087 2410797 2410797 defendant Day William   586981 586981 Day, William, of Louth, shoe maker 0
5183088 2410797 2410797 defendant Derby William carpenter 603087 603087 Derby, William, of Caster, carpenter 1
5183089 2410797 2410797 defendant Puttok Thomas   856951 856951 Puttok, Thomas, of Lagheton in the Mornyng, Yorks, shoe maker 2
5183090 2410797 2410797 defendant Carleton John   604829 604829 Carleton, John, of Great Grymesby, shoe maker 3
5183091 2410797 2410797 defendant Colum John butcher 856953 856953 Colum, John, of Salt Fletehaven, butcher 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 18.238ms