home / cp40x

names

7 rows where case_id = 2413110

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, place_id, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
5190991 2413110 2413110 plaintiff Marchall John     Marchall, John 0
5190992 2413110 2413110 plaintiff Prewet Alexander clerk   Prewet, Alexander, clerk 1
5190993 2413110 2413110 defendant Chaworth William esq 684297 684297 Chaworth, William, of Kyrtlyng, esq 0
5190994 2413110 2413110 defendant Leek Thomas gent 857752 857752 Leek, Thomas, of Osmundethorp, gent 1
5190995 2413110 2413110 defendant Pegge Richard   597521 597521 Pegge, Richard, of Kyrtlyngton 2
5190996 2413110 2413110 defendant Wryght John husbandman   Wryght, John, husbandman 3
5190997 2413110 2413110 defendant Ferlton William   597521 597521 Ferlton, William, of Kyrtlyngton 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 15.109ms