home / cp40x

names

4 rows where case_id = 2020577

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3988339 2020577 2020577 plaintiff ap Owen Meredith gent   ap Owen, Meredith, gent 0
3988340 2020577 2020577 defendant ap David Morgan ap Rice gent 585869 585869 ap David, Morgan ap Rice, of London, or of New Radnor, Radnor, gent 0
3988341 2020577 2020577 defendant ap Meredith Thomas gent 608545 608545 ap Meredith, Thomas, of New Radnor, gent 1
3988342 2020577 2020577 defendant Vaghan John gent 668250 668250 Vaghan, John, of Dysserth, Radnor, gent 2

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.708ms