home / cp40x

names

7 rows where case_id = 1981305

✎ 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
3873352 1981305 1981305 plaintiff Calthorp Philip esq   Calthorp, Philip, esq 0
3873353 1981305 1981305 defendant Gunthorp Thomas husbandman 643387 643387 Gunthorp, Thomas, of Holcam, husbandman 0
3873354 1981305 1981305 defendant Gunthorp Henry husbandman 643387 643387 Gunthorp, Henry, of Holcam, husbandman 1
3873355 1981305 1981305 defendant Dobbys Thomas carpenter 643388 643388 Dobbys, Thomas, of Northecreke, carpenter 2
3873356 1981305 1981305 defendant Newgate Edmund husbandman 635734 635734 Newgate, Edmund, of Northcreke, husbandman 3
3873357 1981305 1981305 defendant Lynne Thomas thatcher 593987 593987 Lynne, Thomas, of Gunthorp, thatcher 4
3873358 1981305 1981305 defendant Wynnell John, junior weaver 632897 632897 Wynnell, John, junior, of Studdey, weaver 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.301ms