home / shop

product_categories

Many-to-many link between products and categories

7 rows where product_id = "oyf15ig4b2"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
oyf15ig4b2,2 Azalea delight oyf15ig4b2 Christmas 2
oyf15ig4b2,9 Azalea delight oyf15ig4b2 Homepage Specials 9
oyf15ig4b2,27 Azalea delight oyf15ig4b2 Planter 27
oyf15ig4b2,36 Azalea delight oyf15ig4b2 Plants 36
oyf15ig4b2,60 Azalea delight oyf15ig4b2 Winter 60
oyf15ig4b2,64 Azalea delight oyf15ig4b2 Jul 64
oyf15ig4b2,72 Azalea delight oyf15ig4b2 Vinter 72

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