home / cp40x

names

10 rows where case_id = 2223247

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, surname, forename, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4573545 2223247 2223247 plaintiff Barry Richard     Barry, Richard 0
4573546 2223247 2223247 defendant Mulleward Walter   768316 768316 Mulleward, Walter, of Shereneton 0
4573547 2223247 2223247 defendant (not given) John his son   John, his son 1
4573548 2223247 2223247 defendant Plomer Andrew   586859 586859 Plomer, Andrew, of Salisbury 2
4573549 2223247 2223247 defendant Jakes John chaplain   Jakes, John, chaplain 3
4573550 2223247 2223247 defendant Plomer Thomas   586859 586859 Plomer, Thomas, of Salisbury 4
4573551 2223247 2223247 defendant Gay John   586859 586859 Gay, John, of Salisbury 5
4573552 2223247 2223247 defendant Macy Henry     Macy, Henry 6
4573553 2223247 2223247 defendant Sompter Thomas     Sompter, Thomas 7
4573554 2223247 2223247 defendant Howes John   768316 768316 Howes, John, of Shereneton 8

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