home / cp40x

names

3 rows where place_id = 665423

✎ View and edit SQL

This data as json, CSV (advanced)

id ▼ case_id role surname forename occupation place_id raw_segment seq
3976837 2016470 2016470 defendant Mydgeley Edward clothier 665423 665423 Mydgeley, Edward, of Mydgeley, clothier 1
4080702 2053407 2053407 defendant Pyghles John carpenter 665423 665423 Pyghles, John, of Mydgeley, carpenter 2
4192832 2093055 2093055 defendant Browne Thomas, junior yeoman 665423 665423 Browne, Thomas, junior, of Mydgeley, yeoman 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 6.278ms