home / cp40x

names

6 rows where case_id = 2498521

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
5478244 2498521 2498521 plaintiff Benale or Bevale John     Benale or Bevale, John 0
5478245 2498521 2498521 defendant Grome Thomas husbandman 891574 891574 Grome, Thomas, of Somurton, husbandman 0
5478246 2498521 2498521 defendant Freman Robert husbandman 594451 594451 Freman, Robert, of Hartest, husbandman 1
5478247 2498521 2498521 defendant Mayhu John husbandman 891575 891575 Mayhu, John, of Reyd, husbandman 2
5478248 2498521 2498521 defendant Broune John   588647 588647 Broune, John, of Caundyssh, millwright 3
5478249 2498521 2498521 defendant Gardener John husbandman 586401 586401 Gardener, John, of Stanfeld, 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 15.33ms