home / sakila

rental

23 rows where customer_id = 93

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

Suggested facets: staff_id, rental_date (date), return_date (date), last_update (date)

rental_id ▼ rental_date inventory_id customer_id return_date staff_id last_update
113 2005-05-25 19:07:40.000 2963 2963 93 93 2005-05-27 22:16:40.000 2 2 2020-12-23 07:15:21
420 2005-05-27 15:19:38.000 619 619 93 93 2005-06-03 15:07:38.000 2 2 2020-12-23 07:15:25
1025 2005-05-31 03:41:37.000 1618 1618 93 93 2005-06-08 07:05:37.000 2 2 2020-12-23 07:15:33
2256 2005-06-18 05:21:56.000 1863 1863 93 93 2005-06-27 02:06:56.000 2 2 2020-12-23 07:15:51
3109 2005-06-20 17:33:55.000 977 977 93 93 2005-06-22 23:09:55.000 1 1 2020-12-23 07:16:02
4733 2005-07-08 13:12:07.000 2230 2230 93 93 2005-07-13 07:34:07.000 1 1 2020-12-23 07:16:27
5130 2005-07-09 07:29:45.000 3264 3264 93 93 2005-07-13 05:56:45.000 1 1 2020-12-23 07:16:32
6287 2005-07-11 17:00:04.000 35 35 93 93 2005-07-12 13:16:04.000 1 1 2020-12-23 07:16:49
6586 2005-07-12 06:56:24.000 3860 3860 93 93 2005-07-17 09:36:24.000 1 1 2020-12-23 07:16:53
7301 2005-07-27 12:50:23.000 3367 3367 93 93 2005-08-01 09:43:23.000 2 2 2020-12-23 07:17:04
8233 2005-07-29 00:16:23.000 1640 1640 93 93 2005-08-03 05:17:23.000 2 2 2020-12-23 07:17:18
11271 2005-08-02 14:18:22.000 4323 4323 93 93 2005-08-07 09:35:22.000 2 2 2020-12-23 07:18:01
12704 2005-08-18 20:43:00.000 51 51 93 93 2005-08-21 22:28:00.000 2 2 2020-12-23 07:18:21
13555 2005-08-20 04:09:50.000 3176 3176 93 93 2005-08-29 05:20:50.000 1 1 2020-12-23 07:18:34
13904 2005-08-20 16:11:34.000 721 721 93 93 2005-08-26 12:46:34.000 1 1 2020-12-23 07:18:39
13950 2005-08-20 17:58:00.000 3978 3978 93 93 2005-08-29 23:23:00.000 1 1 2020-12-23 07:18:40
13993 2005-08-20 19:32:29.000 1158 1158 93 93 2005-08-26 16:59:29.000 2 2 2020-12-23 07:18:41
14195 2005-08-21 03:40:35.000 3732 3732 93 93 2005-08-23 01:22:35.000 1 1 2020-12-23 07:18:44
14333 2005-08-21 08:31:03.000 2976 2976 93 93 2005-08-28 03:39:03.000 2 2 2020-12-23 07:18:45
15324 2005-08-22 20:23:13.000 161 161 93 93 2005-08-29 18:23:13.000 1 1 2020-12-23 07:19:00
15631 2005-08-23 07:30:23.000 2458 2458 93 93 2005-08-24 07:23:23.000 1 1 2020-12-23 07:19:04
15696 2005-08-23 10:04:17.000 2836 2836 93 93 2005-08-25 08:47:17.000 2 2 2020-12-23 07:19:05
15913 2005-08-23 17:48:30.000 3894 3894 93 93 2005-08-31 21:17:30.000 2 2 2020-12-23 07:19:08

Advanced export

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

CSV options:

CREATE TABLE rental (
  rental_id INT NOT NULL,
  rental_date TIMESTAMP NOT NULL,
  inventory_id INT  NOT NULL,
  customer_id INT  NOT NULL,
  return_date TIMESTAMP DEFAULT NULL,
  staff_id SMALLINT  NOT NULL,
  last_update TIMESTAMP NOT NULL,
  PRIMARY KEY (rental_id),
  CONSTRAINT fk_rental_staff FOREIGN KEY (staff_id) REFERENCES staff (staff_id) ,
  CONSTRAINT fk_rental_inventory FOREIGN KEY (inventory_id) REFERENCES inventory (inventory_id) ,
  CONSTRAINT fk_rental_customer FOREIGN KEY (customer_id) REFERENCES customer (customer_id)
);
CREATE INDEX idx_rental_fk_inventory_id ON rental(inventory_id)
;
CREATE INDEX idx_rental_fk_customer_id ON rental(customer_id)
;
CREATE INDEX idx_rental_fk_staff_id ON rental(staff_id)
;
CREATE UNIQUE INDEX idx_rental_uq  ON rental (rental_date,inventory_id,customer_id)
;
Powered by Datasette · Queries took 12.927ms