home / sakila

inventory

6 rows where film_id = 514

✎ 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
2360 LEBOWSKI SOLDIERS 514 1 1 2020-12-23 07:13:15
2361 LEBOWSKI SOLDIERS 514 1 1 2020-12-23 07:13:15
2362 LEBOWSKI SOLDIERS 514 2 2 2020-12-23 07:13:15
2363 LEBOWSKI SOLDIERS 514 2 2 2020-12-23 07:13:15
2364 LEBOWSKI SOLDIERS 514 2 2 2020-12-23 07:13:15
2365 LEBOWSKI SOLDIERS 514 2 2 2020-12-23 07:13:15

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