home / cp40x

names

6 rows where case_id = 2332212

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, surname, forename, occupation, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4918196 2332212 2332212 plaintiff Grey Thomas     Grey, Thomas 0
4918197 2332212 2332212 defendant Norton William merchant 604030 604030 Norton, William, of Exeter, Devon, merchant 0
4918198 2332212 2332212 defendant Westemour John   821856 821856 Westemour, John, of Chyselburgh, parson 1
4918199 2332212 2332212 defendant Westemour John mercer 669776 669776 Westemour, John, of langeport Estover, mercer 2
4918200 2332212 2332212 defendant Grey Henry butcher 669776 669776 Grey, Henry, of Langeport Estover, butcher 3
4918201 2332212 2332212 defendant Halberton John butcher 593282 593282 Halberton, John, of Drayton, 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 6.359ms