home / shop

product_categories

Many-to-many link between products and categories

7 rows where product_id = "4jjld68pg9"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
4jjld68pg9,42 Autumn Bonanza 4jjld68pg9 Orange 42
4jjld68pg9,46 Autumn Bonanza 4jjld68pg9 Host 46
4jjld68pg9,79 Autumn Bonanza 4jjld68pg9 Oransj 79
4jjld68pg9,82 Autumn Bonanza 4jjld68pg9 Decoration 82
4jjld68pg9,92 Autumn Bonanza 4jjld68pg9 Flerfarget 92
4jjld68pg9,95 Autumn Bonanza 4jjld68pg9 Multicolor 95
4jjld68pg9,98 Autumn Bonanza 4jjld68pg9 Autumn 98

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