home / cp40x

names

6 rows where case_id = 1994980

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ case_id role surname forename occupation place_id raw_segment seq
3913852 1994980 1994980 plaintiff Brodway Richard     Brodway, Richard 0
3913853 1994980 1994980 defendant Welter John husbandman 588983 588983 Welter, John, of Tebworth, husbandman 0
3913854 1994980 1994980 defendant Dey Oliver husbandman 611481 611481 Dey, Oliver, of Tyngryff, husbandman 1
3913855 1994980 1994980 defendant Fensham John laborer 606121 606121 Fensham, John, of Harlyngton, laborer 2
3913856 1994980 1994980 defendant Dey Robert laborer 599167 599167 Dey, Robert, of Westnyng, laborer 3
3913857 1994980 1994980 defendant Cowper Richard husbandman 607363 607363 Cowper, Richard, of Eversholt, 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 16.971ms