home / cp40x

names

7 rows where case_id = 2323663

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ case_id role surname forename occupation place_id raw_segment seq
4890026 2323663 2323663 plaintiff Sandre John     Sandre, John 0
4890027 2323663 2323663 defendant Drewe William husbandman 651646 651646 Drewe, William, of Chesterton, Hunts, husbandman 0
4890028 2323663 2323663 defendant Fletton Thomas husbandman 589429 589429 Fletton, Thomas, of Overton, Hunts, husbandman 1
4890029 2323663 2323663 defendant Beyhild John butcher 603511 603511 Beyhild, John, of Peterborough, butcher 2
4890030 2323663 2323663 defendant Drewe John husbandman 589100 589100 Drewe, John, of Chesterton, husbandman 3
4890031 2323663 2323663 defendant Beyhild Roger husbandman 589127 589127 Beyhild, Roger, of Walton, husbandman 4
4890032 2323663 2323663 defendant Mason Thomas   603511 603511 Mason, Thomas, of Peterborough, mason 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 16.649ms