home / cp40x

names

6 rows where case_id = 2093536

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, occupation, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4194240 2093536 2093536 plaintiff Carter James     Carter, James 0
4194241 2093536 2093536 defendant Whyte Richard smith 712537 712537 Whyte, Richard, of Roth, smith 0
4194242 2093536 2093536 defendant Atton William chapman 591385 591385 Atton, William, of Peterborough, Nhants, chapman 1
4194243 2093536 2093536 defendant Shorter John   611002 611002 Shorter, John, of Petworthe, Hants chapman 2
4194244 2093536 2093536 defendant Browne William chapman 587301 587301 Browne, William, of Dunstable, Beds, chapman 3
4194245 2093536 2093536 defendant Wolgar Arthur chapman 627360 627360 Wolgar, Arthur, of Havant, Hants, chapman 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 14.627ms