home / cp40x

names

6 rows where case_id = 2331628

✎ 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
4916391 2331628 2331628 plaintiff Exton Thomas     Exton, Thomas 0
4916392 2331628 2331628 defendant Wayfeld Simon barber 821577 821577 Wayfeld, Simon, of Boxbrave, barber 0
4916393 2331628 2331628 defendant bocher Peter butcher 587191 587191 bocher, Peter, of Arundell, butcher 1
4916394 2331628 2331628 defendant Pedelyn John butcher 587191 587191 Pedelyn, John, of Arundell, butcher 2
4916395 2331628 2331628 defendant Coke John butcher 588084 588084 Coke, John, of Chichester, butcher 3
4916396 2331628 2331628 defendant Sayer John husbandman 821578 821578 Sayer, John, of Boxvrave, husbandman 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 13.853ms