home / shop

product_categories

Many-to-many link between products and categories

5 rows where product_id = "w0k7zlk9x4"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
w0k7zlk9x4,3 Exclusive Blues w0k7zlk9x4 Kranser 3
w0k7zlk9x4,9 Exclusive Blues w0k7zlk9x4 Homepage Specials 9
w0k7zlk9x4,15 Exclusive Blues w0k7zlk9x4 Funerals 15
w0k7zlk9x4,22 Exclusive Blues w0k7zlk9x4 Wreath Decoration 22
w0k7zlk9x4,77 Exclusive Blues w0k7zlk9x4 Homepage No 77

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