home / shop

product_categories

Many-to-many link between products and categories

8 rows where product_id = "ut7fj2bd38"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
ut7fj2bd38,19 Dusk Delight ut7fj2bd38 Buketter 19
ut7fj2bd38,24 Dusk Delight ut7fj2bd38 Morsdag 24
ut7fj2bd38,40 Dusk Delight ut7fj2bd38 Romanse 40
ut7fj2bd38,48 Dusk Delight ut7fj2bd38 Rod 48
ut7fj2bd38,58 Dusk Delight ut7fj2bd38 Jubileum 58
ut7fj2bd38,77 Dusk Delight ut7fj2bd38 Homepage No 77
ut7fj2bd38,92 Dusk Delight ut7fj2bd38 Flerfarget 92
ut7fj2bd38,94 Dusk Delight ut7fj2bd38 Rosa 94

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