home / cp40x

names

6 rows where case_id = 2267722

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ case_id role surname forename occupation place_id raw_segment seq
4707507 2267722 2267722 plaintiff Michell William grocer 585869 585869 Michell, William, of London, grocer 0
4707508 2267722 2267722 plaintiff Petit Thomas grocer 585869 585869 Petit, Thomas, of London, grocer 1
4707509 2267722 2267722 plaintiff Welton Robert clerk   Welton, Robert, clerk 2
4707510 2267722 2267722 defendant (not given) Simon vicar of Derby 601666 601666 Derby, Simon, of Teryngton, Norf, vicar of the parish church 0
4707511 2267722 2267722 defendant Hill John dyer 788358 788358 Hill, John, of Radford in the Clay, Notts, dyer 1
4707512 2267722 2267722 defendant Smyth John   788359 788359 Smyth, John, of Radford in the Clay, iron worker 2

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.274ms