home / cp40x

names

6 rows where case_id = 1990360

✎ 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
3900371 1990360 1990360 plaintiff Butler John esq   Butler, John, esq 0
3900372 1990360 1990360 defendant Allen John laborer 595561 595561 Allen, John, of Droytwiche, laborer 0
3900373 1990360 1990360 defendant Tyllyston John laborer 648192 648192 Tyllyston, John, of Droitewiche, laborer 1
3900374 1990360 1990360 defendant Wynall William husbandman 612165 612165 Wynall, William, of Ombresley, husbandman 2
3900375 1990360 1990360 defendant Cockys Richard smith 612165 612165 Cockys, Richard, of Ombresley, smith 3
3900376 1990360 1990360 defendant Ryall William husbandman 648193 648193 Ryall, William, of Wichebauld, husbandman 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 18.028ms