home / sakila

rental

33 rows where customer_id = 84

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

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

rental_id ▼ rental_date inventory_id customer_id return_date staff_id last_update
408 2005-05-27 13:57:39.000 1438 1438 84 84 2005-05-28 11:57:39.000 1 1 2020-12-23 07:15:25
739 2005-05-29 08:28:18.000 1183 1183 84 84 2005-06-06 09:21:18.000 2 2 2020-12-23 07:15:29
834 2005-05-29 23:24:30.000 3628 3628 84 84 2005-05-30 22:00:30.000 2 2 2020-12-23 07:15:31
1195 2005-06-15 01:37:38.000 2272 2272 84 84 2005-06-17 21:50:38.000 1 1 2020-12-23 07:15:36
1320 2005-06-15 10:42:13.000 4484 4484 84 84 2005-06-17 13:44:13.000 1 1 2020-12-23 07:15:37
1815 2005-06-16 21:16:07.000 1551 1551 84 84 2005-06-17 16:37:07.000 2 2 2020-12-23 07:15:44
2012 2005-06-17 11:57:15.000 3588 3588 84 84 2005-06-24 17:18:15.000 1 1 2020-12-23 07:15:47
2042 2005-06-17 14:31:02.000 3102 3102 84 84 2005-06-18 14:43:02.000 1 1 2020-12-23 07:15:47
2409 2005-06-18 16:53:33.000 656 656 84 84 2005-06-20 18:23:33.000 1 1 2020-12-23 07:15:53
4079 2005-07-07 05:06:27.000 2202 2202 84 84 2005-07-16 08:46:27.000 1 1 2020-12-23 07:16:17
4838 2005-07-08 18:11:00.000 3733 3733 84 84 2005-07-17 12:57:00.000 2 2 2020-12-23 07:16:28
5221 2005-07-09 12:02:23.000 2339 2339 84 84 2005-07-16 15:43:23.000 1 1 2020-12-23 07:16:34
5237 2005-07-09 12:56:58.000 2341 2341 84 84 2005-07-11 15:41:58.000 1 1 2020-12-23 07:16:34
5971 2005-07-11 00:05:58.000 2191 2191 84 84 2005-07-19 04:50:58.000 2 2 2020-12-23 07:16:45
6259 2005-07-11 15:25:52.000 3007 3007 84 84 2005-07-13 11:54:52.000 2 2 2020-12-23 07:16:49
6415 2005-07-11 23:27:52.000 4175 4175 84 84 2005-07-19 22:29:52.000 2 2 2020-12-23 07:16:51
7854 2005-07-28 09:42:31.000 3531 3531 84 84 2005-08-02 09:25:31.000 1 1 2020-12-23 07:17:12
8019 2005-07-28 15:37:43.000 1844 1844 84 84 2005-08-04 15:40:43.000 2 2 2020-12-23 07:17:15
8654 2005-07-29 15:04:27.000 3925 3925 84 84 2005-08-07 18:37:27.000 1 1 2020-12-23 07:17:24
9074 2005-07-30 07:50:10.000 3244 3244 84 84 2005-08-01 11:21:10.000 2 2 2020-12-23 07:17:30
9680 2005-07-31 06:41:46.000 3010 3010 84 84 2005-08-01 11:02:46.000 2 2 2020-12-23 07:17:39
10540 2005-08-01 12:24:42.000 4121 4121 84 84 2005-08-03 08:39:42.000 2 2 2020-12-23 07:17:51
10872 2005-08-02 00:27:50.000 2470 2470 84 84 2005-08-06 20:34:50.000 2 2 2020-12-23 07:17:56
11220 2005-08-02 12:31:41.000 3777 3777 84 84 2005-08-05 08:23:41.000 2 2 2020-12-23 07:18:00
11424 2005-08-02 19:57:42.000 1030 1030 84 84 2005-08-10 16:57:42.000 2 2 2020-12-23 07:18:04
11453 2005-08-02 21:00:05.000 4578 4578 84 84 2005-08-08 22:03:05.000 2 2 2020-12-23 07:18:04
11899 2005-08-17 15:29:12.000 3179 3179 84 84 2005-08-24 17:41:12.000 1 1 2020-12-23 07:18:10
11960 2005-08-17 17:24:30.000 3924 3924 84 84 2005-08-18 14:28:30.000 1 1 2020-12-23 07:18:11
12364 2005-08-18 07:55:09.000 3398 3398 84 84 2005-08-19 05:29:09.000 2 2 2020-12-23 07:18:16
13115 2005-08-19 11:27:43.000 1961 1961 84 84 2005-08-20 10:58:43.000 1 1 2020-12-23 07:18:27
14330 2005-08-21 08:29:20.000 763 763 84 84 2005-08-30 03:59:20.000 2 2 2020-12-23 07:18:45
15190 2005-08-22 15:57:38.000 2096 2096 84 84 2005-08-24 13:46:38.000 1 1 2020-12-23 07:18:58
15255 2005-08-22 18:16:50.000 3415 3415 84 84 2005-08-28 14:14:50.000 2 2 2020-12-23 07:18:59

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