product_categories
7 rows where product_id = "txz8rwodzf"
This data as json, CSV (advanced)
| Link | product_id | category_id |
|---|---|---|
| txz8rwodzf,11 | Lavender Deluxe txz8rwodzf | Romance 11 |
| txz8rwodzf,23 | Lavender Deluxe txz8rwodzf | Mothers Day 23 |
| txz8rwodzf,37 | Lavender Deluxe txz8rwodzf | Valentines 37 |
| txz8rwodzf,51 | Lavender Deluxe txz8rwodzf | Bouquets 51 |
| txz8rwodzf,56 | Lavender Deluxe txz8rwodzf | Purple 56 |
| txz8rwodzf,67 | Lavender Deluxe txz8rwodzf | Valentines Day 67 |
| txz8rwodzf,100 | Lavender Deluxe txz8rwodzf | Flowers in a box 100 |
Advanced export
JSON shape: default, array, newline-delimited, object
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)
);