home / cp40x

names

6 rows where case_id = 2304214

✎ 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
4826155 2304214 2304214 plaintiff Wardrop John     Wardrop, John 0
4826156 2304214 2304214 defendant Staffull Walter   767558 767558 Staffull, Walter, of Aynestaple, mason 0
4826157 2304214 2304214 defendant Davyson Robert yeoman 799923 799923 Davyson, Robert, of Croglyn, yeoman 1
4826158 2304214 2304214 defendant Byres Thomas yeoman 589127 589127 Byres, Thomas, of Walton, yeoman 2
4826159 2304214 2304214 defendant Mulcastre John yeoman 769233 769233 Mulcastre, John, of Blaterne, yeoman 3
4826160 2304214 2304214 defendant Hewetson John yeoman 755912 755912 Hewetson, John, of Warrewyk, yeoman 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 18.428ms