home / cp40x

names

6 rows where case_id = 2273468

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ case_id role surname forename occupation place_id raw_segment seq
4726157 2273468 2273468 plaintiff Grene John     Grene, John 0
4726158 2273468 2273468 defendant Watson Richard   598074 598074 Watson, Richard, of Baddesworth, wright 0
4726159 2273468 2273468 defendant Smyth Thomas smith 598074 598074 Smyth, Thomas, of Baddesworth, smith 1
4726160 2273468 2273468 defendant Thornton Simon butcher 587101 587101 Thornton, Simon, of Snayth, butcher 2
4726161 2273468 2273468 defendant Ysonde Richard victualler 761482 761482 Ysonde, Richard, of Birton, victualler 3
4726162 2273468 2273468 defendant Elys John of Barnesley butcher   Elys, John of Barnesley, butcher 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 16.099ms