home / shop

product_categories

Many-to-many link between products and categories

5 rows where product_id = "nug2yrs6ej"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
nug2yrs6ej,54 Bicolor Carnation Supreme nug2yrs6ej Snittblomster 54
nug2yrs6ej,63 Bicolor Carnation Supreme nug2yrs6ej Fresh Cut Flowers 63
nug2yrs6ej,94 Bicolor Carnation Supreme nug2yrs6ej Rosa 94
nug2yrs6ej,95 Bicolor Carnation Supreme nug2yrs6ej Multicolor 95
nug2yrs6ej,99 Bicolor Carnation Supreme nug2yrs6ej Pink 99

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE product_categories (
    product_id TEXT NOT NULL,
    category_id INTEGER NOT NULL,
    PRIMARY KEY (product_id, category_id),
    FOREIGN KEY (product_id) REFERENCES products(id),
    FOREIGN KEY (category_id) REFERENCES categories(id)
);
Powered by Datasette · Queries took 5.637ms