home / sakila

inventory

8 rows where film_id = 849

✎ 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
3881 STORM HAPPINESS 849 1 1 2020-12-23 07:13:34
3882 STORM HAPPINESS 849 1 1 2020-12-23 07:13:34
3883 STORM HAPPINESS 849 1 1 2020-12-23 07:13:34
3884 STORM HAPPINESS 849 1 1 2020-12-23 07:13:34
3885 STORM HAPPINESS 849 2 2 2020-12-23 07:13:34
3886 STORM HAPPINESS 849 2 2 2020-12-23 07:13:34
3887 STORM HAPPINESS 849 2 2 2020-12-23 07:13:34
3888 STORM HAPPINESS 849 2 2 2020-12-23 07:13:34

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