home / cp40x

names

5 rows where case_id = 1997495

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3921385 1997495 1997495 plaintiff Pecock John haberdasher   Pecock, John, haberdasher 0
3921386 1997495 1997495 defendant Drury Linus mercer 645575 645575 Drury, Linus, of Huntington, mercer 0
3921387 1997495 1997495 defendant Pulley Thomas clerk 588081 588081 Pulley, Thomas, of Cambridge, clerk 1
3921388 1997495 1997495 defendant Sutton William mercer 652064 652064 Sutton, William, of Fenny Stratton, Bucks, mercer 2
3921389 1997495 1997495 defendant Hossekyns John, senior clothier 652065 652065 Hossekyns, John, senior, of Derslye, Glos, clothier 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 10.729ms