home / cp40x

names

5 rows where case_id = 2340901

✎ 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
4946505 2340901 2340901 plaintiff Ketylston John     Ketylston, John 0
4946506 2340901 2340901 defendant Crathorn John esq 825847 825847 Crathorn, John, of Crathorn, Yorks, esq 0
4946507 2340901 2340901 defendant Watson John husbandman 768649 768649 Watson, John, of Crathorn, husbandman 1
4946508 2340901 2340901 defendant Somyour John husbandman 825848 825848 Somyour, John, of Nesse, Yorks, husbandman 2
4946509 2340901 2340901 defendant Laton Robert esq 607010 607010 Laton, Robert, of Rypon, Yorks, esq 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 17.556ms