home / cp40x

names

8 rows where case_id = 2197900

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4491081 2197900 2197900 plaintiff West Richard   587136 587136 West, Richard, of Derby 0
4491082 2197900 2197900 defendant Spicer William   586901 586901 Spicer, William, of Nottingham 0
4491083 2197900 2197900 defendant Botham Thomas de   586901 586901 Botham, Thomas de, of Nottingham 1
4491084 2197900 2197900 defendant Knot John   616182 616182 Knot, John, of Gretham 2
4491085 2197900 2197900 defendant Luffenham John de     Luffenham, John de 3
4491086 2197900 2197900 defendant Wardeyn John   762789 762789 Wardeyn, John, of Sybney 4
4491087 2197900 2197900 defendant Loksmyth William   587136 587136 Loksmyth, William, of Derby 5
4491088 2197900 2197900 defendant Parker John   762790 762790 Parker, John, of Charteles 6

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