home / cp40x

names

6 rows where case_id = 2369883

✎ 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
5044167 2369883 2369883 plaintiff Hagh John     Hagh, John 0
5044168 2369883 2369883 defendant Hanlay Henry gent 588941 588941 Hanlay, Henry, of Keleby, gent 0
5044169 2369883 2369883 defendant Hanlay Ralph esq 797495 797495 Hanlay, Ralph, of Langton by Wragby, esq 1
5044170 2369883 2369883 defendant Neuton Simon gent 630163 630163 Neuton, Simon, of Tetney, gent 2
5044171 2369883 2369883 defendant Brygge John husbandman 630163 630163 Brygge, John, of Tetney, husbandman 3
5044172 2369883 2369883 defendant South Walter husbandman 759348 759348 South, Walter, of Stamelesby, 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 6.295ms