home / cp40x

names

6 rows where case_id = 1980796

✎ 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
3871771 1980796 1980796 plaintiff Bamber William gent   Bamber, William, gent 0
3871772 1980796 1980796 defendant Cowper William husbandman 643119 643119 Cowper, William, of Chellesforth, husbandman 0
3871773 1980796 1980796 defendant Bokyll John mariner 635454 635454 Bokyll, John, of Orforde, mariner 1
3871774 1980796 1980796 defendant Tholles John   635454 635454 Tholles, John, of Orforde, shipwright 2
3871775 1980796 1980796 defendant Cottell John husbandman 632086 632086 Cottell, John, of Woodbredge, husbandman 3
3871776 1980796 1980796 defendant Ellys Henry laborer 643121 643121 Ellys, Henry, of Woodbridge, laborer 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 12.771ms