home / sakila

inventory

5 rows where film_id = 370

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

Suggested facets: store_id, last_update (date)

inventory_id ▼ film_id store_id last_update
1698 GORGEOUS BINGO 370 1 1 2020-12-23 07:13:06
1699 GORGEOUS BINGO 370 1 1 2020-12-23 07:13:06
1700 GORGEOUS BINGO 370 1 1 2020-12-23 07:13:06
1701 GORGEOUS BINGO 370 2 2 2020-12-23 07:13:06
1702 GORGEOUS BINGO 370 2 2 2020-12-23 07:13:06

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE inventory (
  inventory_id INT NOT NULL,
  film_id INT NOT NULL,
  store_id INT NOT NULL,
  last_update TIMESTAMP NOT NULL,
  PRIMARY KEY  (inventory_id),
  CONSTRAINT fk_inventory_store FOREIGN KEY (store_id) REFERENCES store (store_id) ON DELETE NO ACTION ON UPDATE CASCADE,
  CONSTRAINT fk_inventory_film FOREIGN KEY (film_id) REFERENCES film (film_id) ON DELETE NO ACTION ON UPDATE CASCADE
);
CREATE INDEX idx_fk_film_id ON inventory(film_id)
;
CREATE INDEX idx_fk_film_id_store_id ON inventory(store_id,film_id)
;
Powered by Datasette · Queries took 7.687ms