home / shop

product_categories

Many-to-many link between products and categories

8 rows where product_id = "psg4oo5aja"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
psg4oo5aja,2 Blush Winter Box psg4oo5aja Christmas 2
psg4oo5aja,6 Blush Winter Box psg4oo5aja Blomster i en boks 6
psg4oo5aja,60 Blush Winter Box psg4oo5aja Winter 60
psg4oo5aja,64 Blush Winter Box psg4oo5aja Jul 64
psg4oo5aja,72 Blush Winter Box psg4oo5aja Vinter 72
psg4oo5aja,94 Blush Winter Box psg4oo5aja Rosa 94
psg4oo5aja,99 Blush Winter Box psg4oo5aja Pink 99
psg4oo5aja,100 Blush Winter Box psg4oo5aja Flowers in a box 100

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