home / shop

product_categories

Many-to-many link between products and categories

12 rows where product_id = "531r0t1qw5"

✎ View and edit SQL

This data as json, CSV (advanced)

Link product_id category_id
531r0t1qw5,9 Seasonal Bouquet 531r0t1qw5 Homepage Specials 9
531r0t1qw5,16 Seasonal Bouquet 531r0t1qw5 Summer 16
531r0t1qw5,19 Seasonal Bouquet 531r0t1qw5 Buketter 19
531r0t1qw5,29 Seasonal Bouquet 531r0t1qw5 Sommer 29
531r0t1qw5,46 Seasonal Bouquet 531r0t1qw5 Host 46
531r0t1qw5,51 Seasonal Bouquet 531r0t1qw5 Bouquets 51
531r0t1qw5,53 Seasonal Bouquet 531r0t1qw5 Spring 53
531r0t1qw5,60 Seasonal Bouquet 531r0t1qw5 Winter 60
531r0t1qw5,72 Seasonal Bouquet 531r0t1qw5 Vinter 72
531r0t1qw5,77 Seasonal Bouquet 531r0t1qw5 Homepage No 77
531r0t1qw5,83 Seasonal Bouquet 531r0t1qw5 Var 83
531r0t1qw5,98 Seasonal Bouquet 531r0t1qw5 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 5.599ms