home / cp40x

names

7 rows where case_id = 2199426

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, surname, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4495998 2199426 2199426 plaintiff Clerkesson John     Clerkesson, John 0
4495999 2199426 2199426 defendant Balyden Thomas   753362 753362 Balyden, Thomas, of Tuttebury 0
4496000 2199426 2199426 defendant Perkyn Richard   611379 611379 Perkyn, Richard, of Bromley Abbots 1
4496001 2199426 2199426 defendant Blakne Richard   609338 609338 Blakne, Richard, of Hamerton 2
4496002 2199426 2199426 defendant Bryd Nicholas     Bryd, Nicholas 3
4496003 2199426 2199426 defendant Walker John   586314 586314 Walker, John, of Bromley 4
4496004 2199426 2199426 defendant Perkyn John     Perkyn, John 5

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 8.757ms