home / cp40x

names

5 rows where case_id = 2024835

✎ 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
4000187 2024835 2024835 plaintiff Gomey William     Gomey, William 0
4000188 2024835 2024835 defendant ap Dio Owen ap Howell yeoman 659079 659079 ap Dio, Owen ap Howell, of Llanbyster, Radnor, yeoman 0
4000189 2024835 2024835 defendant ap Morgan Moris ap Rice yeoman 653970 653970 ap Morgan, Moris ap Rice, of Llanbister, yeoman 1
4000190 2024835 2024835 defendant ap Thomas David yeoman 653970 653970 ap Thomas, David, of Llanbister, yeoman 2
4000191 2024835 2024835 defendant ap Hoell Jevan ap Rice yeoman 671105 671105 ap Hoell, Jevan ap Rice, of Begildye, Radnor, yeoman 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 13.371ms