home / cp40x

names

5 rows where case_id = 2160050

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4386151 2160050 2160050 plaintiff Boyle William     Boyle, William 0
4386152 2160050 2160050 defendant Symond Thomas yeoman 666271 666271 Symond, Thomas, of Allensmore, yeoman 0
4386153 2160050 2160050 defendant Crumpe Walter yeoman 748881 748881 Crumpe, Walter, of Yersley, yeoman 1
4386154 2160050 2160050 defendant Taylor Thomas yeoman 702324 702324 Taylor, Thomas, of Willersley, yeoman 2
4386155 2160050 2160050 defendant Quarrell William yeoman 748882 748882 Quarrell, William, of Warmebridge, yeoman 3

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 28.705ms