home / cp40x

names

5 rows where place_id = 598226

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: case_id, role, surname, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
3631648 1904712 1904712 defendant Russell Robert butcher 598226 598226 Russell, Robert, of Amphill, butcher 1
4244050 2110992 2110992 defendant Lyle Richard yeoman 598226 598226 Lyle, Richard, of Amphill, yeoman 1
5281383 2439626 2439626 plaintiff Catur John, senior   598226 598226 (Catur, John, senior, of Amphill 1
5281384 2439626 2439626 plaintiff Catur Thomas, junior   598226 598226 Catur, Thomas, junior, of Amphill 2
5287655 2441415 2441415 defendant Smyth John smith 598226 598226 Smyth, John, of Amphill, smith 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 15.697ms