home / cp40x

names

6 rows where case_id = 2397984

✎ 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
5139297 2397984 2397984 plaintiff Shopper John     Shopper, John 0
5139298 2397984 2397984 defendant Stokes Richard osteler 604121 604121 Stokes, Richard, of Shaftysbury, Dors, osteler 0
5139299 2397984 2397984 defendant Carter William weaver 669776 669776 Carter, William, of Langeport Estover, weaver 1
5139300 2397984 2397984 defendant Trays Nicholas tailor 787495 787495 Trays, Nicholas, of Yeovell, tailor 2
5139301 2397984 2397984 defendant Clerk John husbandman 692967 692967 Clerk, John, of Preston Plucknett, husbandman 3
5139302 2397984 2397984 defendant Byrdo John, senior husbandman 594141 594141 Byrdo, John, senior, of North Cadbury, 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 12.437ms