home / shop

product_categories

Many-to-many link between products and categories

5 rows where product_id = "9i0vnew58n"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
9i0vnew58n,4 Luxury Autumn heart 9i0vnew58n Heart Decoration 4
9i0vnew58n,15 Luxury Autumn heart 9i0vnew58n Funerals 15
9i0vnew58n,28 Luxury Autumn heart 9i0vnew58n Coffin Decoration 28
9i0vnew58n,47 Luxury Autumn heart 9i0vnew58n Hjerter 47
9i0vnew58n,89 Luxury Autumn heart 9i0vnew58n Kistedekorasjon 89

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 7.163ms