home / cp40x

names

5 rows where case_id = 2415583

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
5199431 2415583 2415583 plaintiff Wattys John     Wattys, John 0
5199432 2415583 2415583 defendant Ricard William husbandman 730380 730380 Ricard, William, of Chelston, husbandman 0
5199433 2415583 2415583 defendant Miller William husbandman 587367 587367 Miller, William, of Rothewell, husbandman 1
5199434 2415583 2415583 defendant butcher William butcher 795409 795409 butcher, William, of Hiegham Ferrers, butcher 2
5199435 2415583 2415583 defendant Harryes John husbandman, son of John Harryes, sen, of Russhedon   Harryes, John, husbandman, son of John Harryes, sen, of Russhedon 3

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 16.981ms