home / cp40x

names

7 rows where case_id = 2207021

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4521346 2207021 2207021 plaintiff Galyon Roger   755389 755389 Galyon, Roger, of Bishop's Lenn 0
4521347 2207021 2207021 defendant Balsham Ralph de     Balsham, Ralph de 0
4521348 2207021 2207021 defendant Smyth Thomas   619665 619665 Smyth, Thomas, of Tiryngton 1
4521349 2207021 2207021 defendant Sent William     Sent, William 2
4521350 2207021 2207021 defendant Couper Adam   619665 619665 Couper, Adam, of Tiryngton 3
4521351 2207021 2207021 defendant Reve Henry   619665 619665 Reve, Henry, of Tiryngton 4
4521352 2207021 2207021 defendant Frost John     Frost, John 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 6.28ms