home / cp40x

names

4 rows where place_id = 678014

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: case_id, forename

id ▼ case_id role surname forename occupation place_id raw_segment seq
4029490 2035182 2035182 defendant Maye Thomas miller 678014 678014 Maye, Thomas, of Wolpitt, miller 0
4242216 2110390 2110390 defendant Alden James tailor 678014 678014 Alden, James, of Wolpitt, tailor 1
4242217 2110390 2110390 defendant Hill Thomas joiner 678014 678014 Hill, Thomas, of Wolpitt, joiner 2
4247561 2112171 2112171 defendant Woodwarde Robert husbandman 678014 678014 Woodwarde, Robert, of Wolpitt, 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.544ms