home / shop

product_categories

Many-to-many link between products and categories

4 rows where product_id = "uj08pco8fs"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
uj08pco8fs,3 Silver Crown uj08pco8fs Kranser 3
uj08pco8fs,15 Silver Crown uj08pco8fs Funerals 15
uj08pco8fs,22 Silver Crown uj08pco8fs Wreath Decoration 22
uj08pco8fs,73 Silver Crown uj08pco8fs Sympathy 73

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