home / sakila

rental

41 rows where customer_id = 75

✎ 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
180 2005-05-26 04:46:23.000 2752 2752 75 75 2005-06-01 09:58:23.000 1 1 2020-12-23 07:15:22
268 2005-05-26 16:19:08.000 1714 1714 75 75 2005-05-27 14:35:08.000 1 1 2020-12-23 07:15:23
1920 2005-06-17 06:00:23.000 2199 2199 75 75 2005-06-24 04:49:23.000 1 1 2020-12-23 07:15:46
2161 2005-06-17 23:39:50.000 3149 3149 75 75 2005-06-26 23:28:50.000 2 2 2020-12-23 07:15:49
2738 2005-06-19 15:56:30.000 350 350 75 75 2005-06-20 16:14:30.000 2 2 2020-12-23 07:15:57
3062 2005-06-20 13:50:00.000 591 591 75 75 2005-06-27 08:18:00.000 1 1 2020-12-23 07:16:02
3210 2005-06-21 01:00:25.000 467 467 75 75 2005-06-23 06:10:25.000 2 2 2020-12-23 07:16:04
3711 2005-07-06 10:46:15.000 1914 1914 75 75 2005-07-07 09:25:15.000 2 2 2020-12-23 07:16:11
4179 2005-07-07 10:17:15.000 559 559 75 75 2005-07-10 05:12:15.000 2 2 2020-12-23 07:16:18
4511 2005-07-08 02:36:21.000 4438 4438 75 75 2005-07-15 06:01:21.000 1 1 2020-12-23 07:16:23
4639 2005-07-08 08:57:21.000 2459 2459 75 75 2005-07-14 11:22:21.000 2 2 2020-12-23 07:16:25
5260 2005-07-09 14:05:45.000 3143 3143 75 75 2005-07-14 08:41:45.000 2 2 2020-12-23 07:16:34
6052 2005-07-11 03:51:27.000 881 881 75 75 2005-07-16 02:55:27.000 2 2 2020-12-23 07:16:46
6092 2005-07-11 05:51:31.000 2129 2129 75 75 2005-07-17 03:42:31.000 1 1 2020-12-23 07:16:46
6486 2005-07-12 02:09:36.000 4008 4008 75 75 2005-07-14 03:04:36.000 2 2 2020-12-23 07:16:52
6530 2005-07-12 04:33:19.000 3410 3410 75 75 2005-07-15 08:26:19.000 1 1 2020-12-23 07:16:53
6852 2005-07-12 19:33:49.000 2182 2182 75 75 2005-07-13 20:01:49.000 2 2 2020-12-23 07:16:57
7052 2005-07-27 03:36:38.000 3798 3798 75 75 2005-08-03 21:51:38.000 1 1 2020-12-23 07:17:00
7454 2005-07-27 18:27:26.000 3248 3248 75 75 2005-07-30 23:50:26.000 1 1 2020-12-23 07:17:06
7843 2005-07-28 09:10:22.000 3962 3962 75 75 2005-08-01 11:27:22.000 2 2 2020-12-23 07:17:12
7897 2005-07-28 11:01:51.000 1396 1396 75 75 2005-07-31 13:13:51.000 1 1 2020-12-23 07:17:13
8202 2005-07-28 23:11:45.000 3802 3802 75 75 2005-08-03 21:57:45.000 2 2 2020-12-23 07:17:17
8823 2005-07-29 22:22:12.000 951 951 75 75 2005-08-07 21:03:12.000 1 1 2020-12-23 07:17:27
9168 2005-07-30 11:31:17.000 2035 2035 75 75 2005-08-08 16:56:17.000 2 2 2020-12-23 07:17:32
9442 2005-07-30 21:44:31.000 44 44 75 75 2005-08-04 01:29:31.000 1 1 2020-12-23 07:17:36
9501 2005-07-30 23:59:21.000 4398 4398 75 75 2005-08-05 19:50:21.000 2 2 2020-12-23 07:17:36
9783 2005-07-31 10:15:46.000 836 836 75 75 2005-08-09 13:22:46.000 2 2 2020-12-23 07:17:41
10653 2005-08-01 16:28:07.000 1190 1190 75 75 2005-08-07 21:22:07.000 2 2 2020-12-23 07:17:53
10726 2005-08-01 19:14:53.000 749 749 75 75 2005-08-08 23:56:53.000 2 2 2020-12-23 07:17:54
10871 2005-08-02 00:27:24.000 104 104 75 75 2005-08-05 06:25:24.000 1 1 2020-12-23 07:17:56
11330 2005-08-02 16:45:33.000 4326 4326 75 75 2005-08-04 15:15:33.000 2 2 2020-12-23 07:18:02
12002 2005-08-17 18:56:02.000 1386 1386 75 75 2005-08-20 17:36:02.000 1 1 2020-12-23 07:18:11
12239 2005-08-18 03:26:42.000 1948 1948 75 75 2005-08-24 23:48:42.000 1 1 2020-12-23 07:18:15
12336 2005-08-18 06:59:41.000 2484 2484 75 75 2005-08-23 01:36:41.000 1 1 2020-12-23 07:18:16
12412 2005-08-18 09:49:52.000 1578 1578 75 75 2005-08-23 12:32:52.000 2 2 2020-12-23 07:18:17
12426 2005-08-18 10:24:11.000 799 799 75 75 2005-08-22 15:34:11.000 2 2 2020-12-23 07:18:17
12662 2005-08-18 19:10:41.000 1412 1412 75 75 2005-08-23 16:59:41.000 1 1 2020-12-23 07:18:20
13534 2006-02-14 15:16:03.000 2476 2476 75 75   1 1 2020-12-23 07:18:33
14488 2006-02-14 15:16:03.000 4202 4202 75 75   2 2 2020-12-23 07:18:48
15191 2006-02-14 15:16:03.000 3688 3688 75 75   1 1 2020-12-23 07:18:58
15928 2005-08-23 18:23:24.000 2086 2086 75 75 2005-09-01 23:43:24.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.384ms