home / cp40x

names

6 rows where case_id = 2238743

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4624821 2238743 2238743 plaintiff Okeley Philip de   775623 775623 Okeley, Philip de, of Chyrbury, vicar 0
4624822 2238743 2238743 defendant Tailor Lawrence   660549 660549 Tailor, Lawrence, of Leyntwardyn 0
4624823 2238743 2238743 defendant Couper Roger   755273 755273 Couper, Roger, of Bishop's Castle 1
4624824 2238743 2238743 defendant Worthin Hugh shoemaker   Worthin, Hugh, shoemaker 2
4624825 2238743 2238743 defendant Neuton Richard   586697 586697 Neuton, Richard, of Shrewsbury 3
4624826 2238743 2238743 defendant Cradot John   761367 761367 Cradot, John, of Lydon 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.013ms