home / shop

product_categories

Many-to-many link between products and categories

5 rows where product_id = "q95gwlwmws"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
q95gwlwmws,9 Red Love Joy bouquet q95gwlwmws Homepage Specials 9
q95gwlwmws,11 Red Love Joy bouquet q95gwlwmws Romance 11
q95gwlwmws,39 Red Love Joy bouquet q95gwlwmws Red 39
q95gwlwmws,51 Red Love Joy bouquet q95gwlwmws Bouquets 51
q95gwlwmws,67 Red Love Joy bouquet q95gwlwmws Valentines Day 67

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