home / shop

product_categories

Many-to-many link between products and categories

8 rows where product_id = "blaizcv7b2"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
blaizcv7b2,18 Vendela blaizcv7b2 White 18
blaizcv7b2,31 Vendela blaizcv7b2 Colombian Roses 31
blaizcv7b2,50 Vendela blaizcv7b2 Colombianske Roser 50
blaizcv7b2,60 Vendela blaizcv7b2 Winter 60
blaizcv7b2,70 Vendela blaizcv7b2 Kondolanse 70
blaizcv7b2,72 Vendela blaizcv7b2 Vinter 72
blaizcv7b2,90 Vendela blaizcv7b2 Roses 90
blaizcv7b2,93 Vendela blaizcv7b2 Hvit 93

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 6.049ms