home / cp40x

names

9 rows where case_id = 2232142

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, surname, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4602953 2232142 2232142 plaintiff Whitton Thomas     Whitton, Thomas 0
4602954 2232142 2232142 plaintiff Tuppa John     Tuppa, John 1
4602955 2232142 2232142 defendant Prisleye William     Prisleye, William 0
4602956 2232142 2232142 defendant Gryme Philip clerk   Gryme, Philip, clerk 1
4602957 2232142 2232142 defendant Gryme Thomas     Gryme, Thomas 2
4602958 2232142 2232142 defendant Wyche John salter   Wyche, John, salter 3
4602959 2232142 2232142 defendant Whethill William     Whethill, William 4
4602960 2232142 2232142 defendant Norton John   599473 599473 Norton, John, of Medylton 5
4602961 2232142 2232142 defendant Wetulton John     Wetulton, John 6

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.543ms