home / shop

product_categories

Many-to-many link between products and categories

6 rows where product_id = "28llyv2a1n"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
28llyv2a1n,19 Citrus Joy 28llyv2a1n Buketter 19
28llyv2a1n,29 Citrus Joy 28llyv2a1n Sommer 29
28llyv2a1n,46 Citrus Joy 28llyv2a1n Host 46
28llyv2a1n,66 Citrus Joy 28llyv2a1n Dekorasjon 66
28llyv2a1n,79 Citrus Joy 28llyv2a1n Oransj 79
28llyv2a1n,92 Citrus Joy 28llyv2a1n Flerfarget 92

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.915ms