home / cp40x

names

5 rows where case_id = 2463305

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
5360470 2463305 2463305 plaintiff Sharp Robert gent   Sharp, Robert, gent 0
5360471 2463305 2463305 defendant Bedyll Mathew yeoman 877487 877487 Bedyll, Mathew, of Milton juxta Gravesende, Kent, yeoman 0
5360472 2463305 2463305 defendant Boner Ralph husbandman 586304 586304 Boner, Ralph, of Fordham, Cams, husbandman 1
5360473 2463305 2463305 defendant Hoton Henry yeoman 852135 852135 Hoton, Henry, of Graston, Nhants, yeoman 2
5360474 2463305 2463305 defendant Pate John husbandman 589636 589636 Pate, John, of Soham, Cams, husbandman 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 15.78ms