home / cp40x

names

7 rows where case_id = 2240816

✎ 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
4631759 2240816 2240816 plaintiff Tiptot John knight   Tiptot, John, knight 0
4631760 2240816 2240816 plaintiff Goodred William jun   Goodred, William, jun 1
4631761 2240816 2240816 defendant Hoodesdon John     Hoodesdon, John 0
4631762 2240816 2240816 defendant Giffard John   775759 775759 Giffard, John, of Great Wilburgham 1
4631763 2240816 2240816 defendant Ballard John   775759 775759 Ballard, John, of Great Wilburgham 2
4631764 2240816 2240816 defendant Gedd William     Gedd, William 3
4631765 2240816 2240816 defendant Holm William   775759 775759 Holm, William, of Great Wilburgham 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 15.087ms