home / cp40x

names

6 rows where case_id = 2486100

✎ 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
5437298 2486100 2486100 plaintiff Smyth Richard     Smyth, Richard 0
5437299 2486100 2486100 defendant Sylvester Thomas husbandman 887392 887392 Sylvester, Thomas, of Bryssley, husbandman 0
5437300 2486100 2486100 defendant Batche William husbandman 589533 589533 Batche, William, of Beteley, husbandman 1
5437301 2486100 2486100 defendant Cook Thomas husbandman 611830 611830 Cook, Thomas, of Bylney, husbandman 2
5437302 2486100 2486100 defendant Burnham John husbandman 636491 636491 Burnham, John, of Styberd, husbandman 3
5437303 2486100 2486100 defendant Fysshe Robert husbandman 887393 887393 Fysshe, Robert, of Hemptpon, 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 14.699ms