home / cp40x

names

6 rows where case_id = 2429818

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, surname, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
5248949 2429818 2429818 plaintiff Thomson Robert   591613 591613 Thomson, Robert, of Snyterle 0
5248950 2429818 2429818 defendant Walker William parson of Halninby, Yorks   Walker, William, parson of Halninby, Yorks 0
5248951 2429818 2429818 defendant Storour Richard butcher 864030 864030 Storour, Richard, of Halninby, butcher 1
5248952 2429818 2429818 defendant Langrygge Robert shoemaker 864031 864031 Langrygge, Robert, of Wensedale, Yorks, shoemaker 2
5248953 2429818 2429818 defendant Sothed Thomas baker 586940 586940 Sothed, Thomas, of Baldeswell, baker 3
5248954 2429818 2429818 defendant Langrygge William tailor 864032 864032 Langrygge, William, of North Alderton, Yorks, tailor 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.84ms