home / cp40x

names

6 rows where case_id = 2451242

✎ 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
5320569 2451242 2451242 plaintiff Kempe John     Kempe, John 0
5320570 2451242 2451242 defendant Shepherd Simon weaver 759694 759694 Shepherd, Simon, of Brundyssh, weaver 0
5320571 2451242 2451242 defendant Clerk Robert barber 592820 592820 Clerk, Robert, of Dunwich, barber 1
5320572 2451242 2451242 defendant Grome William husbandman 859907 859907 Grome, William, of Stratford juxta Farnham, husbandman 2
5320573 2451242 2451242 defendant Butte John shoemaker 591252 591252 Butte, John, of Sybton, shoemaker 3
5320574 2451242 2451242 defendant Wyght John butcher 596671 596671 Wyght, John, of Wykham Market, butcher 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 13.727ms