home / shop

product_categories

Many-to-many link between products and categories

6 rows where product_id = "nwuy6q2zuc"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
nwuy6q2zuc,11 Rose Lush nwuy6q2zuc Romance 11
nwuy6q2zuc,23 Rose Lush nwuy6q2zuc Mothers Day 23
nwuy6q2zuc,67 Rose Lush nwuy6q2zuc Valentines Day 67
nwuy6q2zuc,95 Rose Lush nwuy6q2zuc Multicolor 95
nwuy6q2zuc,99 Rose Lush nwuy6q2zuc Pink 99
nwuy6q2zuc,100 Rose Lush nwuy6q2zuc 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 7.001ms