home / cp40x

names

6 rows where case_id = 2095297

✎ 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
4199258 2095297 2095297 plaintiff Gruff Thomas     Gruff, Thomas 0
4199259 2095297 2095297 defendant Lloyd John Lloyd ap Gruff gent 683300 683300 Lloyd, John Lloyd ap Gruff, of Kilken, Flint, gent 0
4199260 2095297 2095297 defendant ap Day Elias ap Rees gent 713468 713468 ap Day, Elias ap Rees, of Skevioth, Flint, gent 1
4199261 2095297 2095297 defendant ap Harrye Howell ap John gent 713469 713469 ap Harrye, Howell ap John, of Skevioth, gent 2
4199262 2095297 2095297 defendant Pennant Maurice gent 713469 713469 Pennant, Maurice, of Skevioth, gent 3
4199263 2095297 2095297 defendant ap Richard Kenrick gent 664589 664589 ap Richard, Kenrick, of Northopp, Flint, gent 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 15.729ms