home / cp40x

names

6 rows where case_id = 2181528

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4439148 2181528 2181528 plaintiff Aubrey William     Aubrey, William 0
4439149 2181528 2181528 defendant Restel Robert   756607 756607 Restel, Robert, of Brocoma 0
4439150 2181528 2181528 defendant Walton Richard sheerman 603370 603370 Walton, Richard, of Lynne, sheerman 1
4439151 2181528 2181528 defendant Berd Roger   755245 755245 Berd, Roger, of Herefordshire 2
4439152 2181528 2181528 defendant Toukere Gerard   594261 594261 Toukere, Gerard, of Bathe 3
4439153 2181528 2181528 defendant Aillesbury William     Aillesbury, William 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 12.097ms