home / shop

product_categories

Many-to-many link between products and categories

8 rows where product_id = "7swhm4exrh"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
7swhm4exrh,19 Royal Red bouquet 7swhm4exrh Buketter 19
7swhm4exrh,37 Royal Red bouquet 7swhm4exrh Valentines 37
7swhm4exrh,39 Royal Red bouquet 7swhm4exrh Red 39
7swhm4exrh,48 Royal Red bouquet 7swhm4exrh Rod 48
7swhm4exrh,51 Royal Red bouquet 7swhm4exrh Bouquets 51
7swhm4exrh,58 Royal Red bouquet 7swhm4exrh Jubileum 58
7swhm4exrh,67 Royal Red bouquet 7swhm4exrh Valentines Day 67
7swhm4exrh,97 Royal Red bouquet 7swhm4exrh Anniversary 97

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