home / cp40x

names

6 rows where case_id = 2353992

✎ 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
4990246 2353992 2353992 plaintiff Casthorp John     Casthorp, John 0
4990247 2353992 2353992 defendant Baxter Thomas yeoman 598754 598754 Baxter, Thomas, of bulwyk, yeoman 0
4990248 2353992 2353992 defendant Danastre William yeoman 607716 607716 Danastre, William, of Corby, yeoman 1
4990249 2353992 2353992 defendant Raulyns Richard yeoman 728058 728058 Raulyns, Richard, of Kyslyngbury, yeoman 2
4990250 2353992 2353992 defendant Blaby John yeoman 586848 586848 Blaby, John, of Northampton, yeoman 3
4990251 2353992 2353992 defendant Ardern Henry yeoman 599957 599957 Ardern, Henry, of Sprotton, yeoman 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 11.751ms