home / cp40x

names

6 rows where case_id = 2398872

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
5142314 2398872 2398872 plaintiff White Robert     White, Robert 0
5142315 2398872 2398872 defendant Fox Thomas   691429 691429 Fox, Thomas, of Cold Aston, Derbs, scythe smith 0
5142316 2398872 2398872 defendant Moldeson John   586787 586787 Moldeson, John, of Chesterfeld, Derbs, scythe smith 1
5142317 2398872 2398872 defendant Bladesmyth William cutler 592299 592299 Bladesmyth, William, of Doncaster, cutler 2
5142318 2398872 2398872 defendant Calton Thomas chapman 852364 852364 Calton, Thomas, of Whitityngton, Derbs, chapman 3
5142319 2398872 2398872 defendant Felip John chapman 631888 631888 Felip, John, of Bantre, Yorks, chapman 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 16.145ms