home / shop

product_categories

Many-to-many link between products and categories

8 rows where product_id = "pg2yqbze4n"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
pg2yqbze4n,10 Pink Orchid Queen pg2yqbze4n Baby 10
pg2yqbze4n,23 Pink Orchid Queen pg2yqbze4n Mothers Day 23
pg2yqbze4n,27 Pink Orchid Queen pg2yqbze4n Planter 27
pg2yqbze4n,36 Pink Orchid Queen pg2yqbze4n Plants 36
pg2yqbze4n,53 Pink Orchid Queen pg2yqbze4n Spring 53
pg2yqbze4n,81 Pink Orchid Queen pg2yqbze4n Orchids 81
pg2yqbze4n,96 Pink Orchid Queen pg2yqbze4n Corporate Solutions 96
pg2yqbze4n,99 Pink Orchid Queen pg2yqbze4n Pink 99

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