home / shop

product_categories

Many-to-many link between products and categories

7 rows where product_id = "tka5houp4d"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
tka5houp4d,19 Majestic Blues tka5houp4d Buketter 19
tka5houp4d,23 Majestic Blues tka5houp4d Mothers Day 23
tka5houp4d,51 Majestic Blues tka5houp4d Bouquets 51
tka5houp4d,74 Majestic Blues tka5houp4d Best Sellers 74
tka5houp4d,100 Majestic Blues tka5houp4d Flowers in a box 100
tka5houp4d,101 Majestic Blues tka5houp4d Lilla 101
tka5houp4d,719 Majestic Blues tka5houp4d OutOfSeason 719

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