home / shop

product_categories

Many-to-many link between products and categories

10 rows where product_id = "tka5houp4d"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
tka5houp4d,9 Majestic Blues tka5houp4d Homepage Specials 9
tka5houp4d,19 Majestic Blues tka5houp4d Buketter 19
tka5houp4d,23 Majestic Blues tka5houp4d Mothers Day 23
tka5houp4d,51 Majestic Blues tka5houp4d Bouquets 51
tka5houp4d,56 Majestic Blues tka5houp4d Purple 56
tka5houp4d,67 Majestic Blues tka5houp4d Valentines Day 67
tka5houp4d,74 Majestic Blues tka5houp4d Best Sellers 74
tka5houp4d,77 Majestic Blues tka5houp4d Homepage No 77
tka5houp4d,100 Majestic Blues tka5houp4d Flowers in a box 100
tka5houp4d,101 Majestic Blues tka5houp4d Lilla 101

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