home / cp40x

names

7 rows where case_id = 2217049

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, surname, forename, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4553572 2217049 2217049 plaintiff Gerveys Thomas     Gerveys, Thomas 0
4553573 2217049 2217049 defendant Rose David draper   Rose, David, draper 0
4553574 2217049 2217049 defendant Clerk John   589301 589301 Clerk, John, of Gillyngham 1
4553575 2217049 2217049 defendant Shep Henry   586859 586859 Shep, Henry, of Salisbury 2
4553576 2217049 2217049 defendant Baker John   619487 619487 Baker, John, of Wallop 3
4553577 2217049 2217049 defendant Gerveys Henry   603850 603850 Gerveys, Henry, of Cornwall 4
4553578 2217049 2217049 defendant Bodolget John   603850 603850 Bodolget, John, of Cornwall 5

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.598ms