home / cp40x

names

6 rows where case_id = 2310542

✎ 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
4846908 2310542 2310542 plaintiff Redman John     Redman, John 0
4846909 2310542 2310542 defendant Haybergh William yeoman 682794 682794 Haybergh, William, of Middleton, yeoman 0
4846910 2310542 2310542 defendant Haybergh Edmund yeoman 682794 682794 Haybergh, Edmund, of Middleton, yeoman 1
4846911 2310542 2310542 defendant Harlyng Gilbert yeoman 755686 755686 Harlyng, Gilbert, of Kesthwayt, yeoman 2
4846912 2310542 2310542 defendant Banes William yeoman 811936 811936 Banes, William, of Tenylshed, yeoman 3
4846913 2310542 2310542 defendant Hardyberd John laborer 767417 767417 Hardyberd, John, of Kirkeby Lonesdale, laborer 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 17.866ms