home / sakila

rental

35 rows where customer_id = 91

✎ 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
216 2005-05-26 09:17:43.000 1398 1398 91 91 2005-06-03 08:21:43.000 1 1 2020-12-23 07:15:22
1299 2005-06-15 09:34:50.000 1584 1584 91 91 2005-06-21 12:07:50.000 1 1 2020-12-23 07:15:37
2457 2005-06-18 19:38:20.000 1277 1277 91 91 2005-06-26 20:48:20.000 1 1 2020-12-23 07:15:53
2908 2005-06-20 03:16:52.000 517 517 91 91 2005-06-22 08:46:52.000 1 1 2020-12-23 07:15:59
3384 2005-06-21 14:07:35.000 409 409 91 91 2005-06-26 16:34:35.000 1 1 2020-12-23 07:16:06
3802 2005-07-06 15:06:09.000 1017 1017 91 91 2005-07-08 09:33:09.000 2 2 2020-12-23 07:16:12
4103 2005-07-07 06:25:28.000 3632 3632 91 91 2005-07-12 11:18:28.000 1 1 2020-12-23 07:16:17
4245 2005-07-07 13:48:33.000 3743 3743 91 91 2005-07-10 09:54:33.000 1 1 2020-12-23 07:16:19
4321 2005-07-07 17:52:38.000 612 612 91 91 2005-07-11 23:37:38.000 1 1 2020-12-23 07:16:20
4673 2005-07-08 10:16:00.000 2792 2792 91 91 2005-07-17 10:03:00.000 2 2 2020-12-23 07:16:26
5025 2005-07-09 02:28:24.000 153 153 91 91 2005-07-12 04:43:24.000 2 2 2020-12-23 07:16:31
5187 2005-07-09 10:19:51.000 2631 2631 91 91 2005-07-14 10:35:51.000 1 1 2020-12-23 07:16:33
5701 2005-07-10 09:56:24.000 2395 2395 91 91 2005-07-16 15:11:24.000 2 2 2020-12-23 07:16:41
6078 2005-07-11 05:06:52.000 3985 3985 91 91 2005-07-17 06:13:52.000 2 2 2020-12-23 07:16:46
6178 2005-07-11 10:59:09.000 2777 2777 91 91 2005-07-16 11:19:09.000 2 2 2020-12-23 07:16:47
6860 2005-07-12 19:54:17.000 2907 2907 91 91 2005-07-18 13:59:17.000 1 1 2020-12-23 07:16:58
7143 2005-07-27 06:56:31.000 2877 2877 91 91 2005-07-31 04:38:31.000 2 2 2020-12-23 07:17:02
7637 2005-07-28 01:12:25.000 87 87 91 91 2005-08-02 03:48:25.000 1 1 2020-12-23 07:17:09
7966 2005-07-28 13:53:54.000 2514 2514 91 91 2005-08-06 15:32:54.000 1 1 2020-12-23 07:17:14
8313 2005-07-29 03:34:21.000 2736 2736 91 91 2005-08-02 01:32:21.000 1 1 2020-12-23 07:17:19
8873 2005-07-30 00:14:32.000 3498 3498 91 91 2005-08-04 20:42:32.000 2 2 2020-12-23 07:17:27
9228 2005-07-30 13:36:57.000 2325 2325 91 91 2005-08-05 10:43:57.000 1 1 2020-12-23 07:17:33
9396 2005-07-30 20:07:24.000 1250 1250 91 91 2005-08-03 21:20:24.000 2 2 2020-12-23 07:17:35
10008 2005-07-31 17:59:36.000 2589 2589 91 91 2005-08-03 22:43:36.000 2 2 2020-12-23 07:17:44
11418 2005-08-02 19:45:33.000 4490 4490 91 91 2005-08-06 17:40:33.000 1 1 2020-12-23 07:18:03
12847 2005-08-19 02:04:07.000 384 384 91 91 2005-08-23 20:13:07.000 2 2 2020-12-23 07:18:23
12902 2006-02-14 15:16:03.000 464 464 91 91   2 2 2020-12-23 07:18:24
13222 2005-08-19 15:47:58.000 1656 1656 91 91 2005-08-26 12:43:58.000 1 1 2020-12-23 07:18:29
13309 2005-08-19 19:04:00.000 2108 2108 91 91 2005-08-28 23:08:00.000 2 2 2020-12-23 07:18:30
14132 2005-08-21 01:43:58.000 3806 3806 91 91 2005-08-26 20:16:58.000 2 2 2020-12-23 07:18:43
14888 2005-08-22 04:09:18.000 3345 3345 91 91 2005-08-23 07:34:18.000 2 2 2020-12-23 07:18:53
15122 2005-08-22 12:47:45.000 1686 1686 91 91 2005-08-29 13:18:45.000 2 2 2020-12-23 07:18:57
15341 2005-08-22 20:56:31.000 3359 3359 91 91 2005-08-30 17:25:31.000 1 1 2020-12-23 07:19:00
15707 2005-08-23 10:35:45.000 3646 3646 91 91 2005-08-27 10:57:45.000 1 1 2020-12-23 07:19:05
15886 2005-08-23 16:50:53.000 3038 3038 91 91 2005-08-26 15:38:53.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 13.093ms