home / shop

product_categories

Many-to-many link between products and categories

6 rows where product_id = "pft1p63jbd"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
pft1p63jbd,9 Summer Eve bliss pft1p63jbd Homepage Specials 9
pft1p63jbd,16 Summer Eve bliss pft1p63jbd Summer 16
pft1p63jbd,30 Summer Eve bliss pft1p63jbd Floral Arrangements 30
pft1p63jbd,53 Summer Eve bliss pft1p63jbd Spring 53
pft1p63jbd,77 Summer Eve bliss pft1p63jbd Homepage No 77
pft1p63jbd,99 Summer Eve bliss pft1p63jbd Pink 99

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