rental
33 rows where customer_id = 522
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 |
|---|---|---|---|---|---|---|
| 426 | 2005-05-27 15:56:57.000 | 1103 1103 | 522 522 | 2005-06-05 11:45:57.000 | 1 1 | 2020-12-23 07:15:25 |
| 1289 | 2005-06-15 08:44:09.000 | 3154 3154 | 522 522 | 2005-06-21 06:04:09.000 | 1 1 | 2020-12-23 07:15:37 |
| 3102 | 2005-06-20 16:55:55.000 | 1144 1144 | 522 522 | 2005-06-29 13:49:55.000 | 1 1 | 2020-12-23 07:16:02 |
| 3188 | 2005-06-20 23:10:27.000 | 2471 2471 | 522 522 | 2005-06-25 19:37:27.000 | 2 2 | 2020-12-23 07:16:03 |
| 3191 | 2005-06-20 23:46:39.000 | 4358 4358 | 522 522 | 2005-06-25 03:21:39.000 | 2 2 | 2020-12-23 07:16:03 |
| 3594 | 2005-07-06 04:42:47.000 | 4566 4566 | 522 522 | 2005-07-10 00:49:47.000 | 1 1 | 2020-12-23 07:16:09 |
| 4078 | 2005-07-07 05:05:05.000 | 1671 1671 | 522 522 | 2005-07-10 05:39:05.000 | 1 1 | 2020-12-23 07:16:17 |
| 4563 | 2005-07-08 05:08:55.000 | 287 287 | 522 522 | 2005-07-16 05:44:55.000 | 2 2 | 2020-12-23 07:16:24 |
| 4701 | 2005-07-08 11:38:48.000 | 3012 3012 | 522 522 | 2005-07-13 15:59:48.000 | 2 2 | 2020-12-23 07:16:26 |
| 5271 | 2005-07-09 14:25:01.000 | 2691 2691 | 522 522 | 2005-07-16 17:28:01.000 | 1 1 | 2020-12-23 07:16:34 |
| 5514 | 2005-07-10 01:09:42.000 | 1824 1824 | 522 522 | 2005-07-17 05:47:42.000 | 1 1 | 2020-12-23 07:16:38 |
| 5532 | 2005-07-10 02:17:31.000 | 983 983 | 522 522 | 2005-07-16 02:57:31.000 | 2 2 | 2020-12-23 07:16:38 |
| 5936 | 2005-07-10 22:14:30.000 | 1951 1951 | 522 522 | 2005-07-15 01:32:30.000 | 1 1 | 2020-12-23 07:16:44 |
| 7262 | 2005-07-27 11:15:36.000 | 4097 4097 | 522 522 | 2005-07-30 10:49:36.000 | 2 2 | 2020-12-23 07:17:04 |
| 7955 | 2005-07-28 13:31:36.000 | 1519 1519 | 522 522 | 2005-07-30 10:03:36.000 | 1 1 | 2020-12-23 07:17:14 |
| 8181 | 2005-07-28 22:18:38.000 | 357 357 | 522 522 | 2005-08-06 02:43:38.000 | 2 2 | 2020-12-23 07:17:17 |
| 8642 | 2005-07-29 14:38:17.000 | 3947 3947 | 522 522 | 2005-08-03 14:41:17.000 | 1 1 | 2020-12-23 07:17:24 |
| 8966 | 2005-07-30 03:54:12.000 | 1903 1903 | 522 522 | 2005-07-31 04:51:12.000 | 1 1 | 2020-12-23 07:17:29 |
| 9047 | 2005-07-30 06:56:33.000 | 256 256 | 522 522 | 2005-08-08 06:40:33.000 | 2 2 | 2020-12-23 07:17:30 |
| 9227 | 2005-07-30 13:36:13.000 | 2353 2353 | 522 522 | 2005-08-07 17:39:13.000 | 1 1 | 2020-12-23 07:17:33 |
| 9335 | 2005-07-30 18:00:53.000 | 1006 1006 | 522 522 | 2005-08-01 16:05:53.000 | 1 1 | 2020-12-23 07:17:34 |
| 9412 | 2005-07-30 20:44:10.000 | 2482 2482 | 522 522 | 2005-08-06 21:13:10.000 | 2 2 | 2020-12-23 07:17:35 |
| 9533 | 2005-07-31 01:18:10.000 | 4156 4156 | 522 522 | 2005-08-07 19:58:10.000 | 1 1 | 2020-12-23 07:17:37 |
| 10223 | 2005-08-01 01:23:15.000 | 1370 1370 | 522 522 | 2005-08-02 19:39:15.000 | 1 1 | 2020-12-23 07:17:47 |
| 10411 | 2005-08-01 07:56:32.000 | 1946 1946 | 522 522 | 2005-08-10 04:58:32.000 | 2 2 | 2020-12-23 07:17:49 |
| 10675 | 2005-08-01 17:11:57.000 | 649 649 | 522 522 | 2005-08-10 17:18:57.000 | 1 1 | 2020-12-23 07:17:53 |
| 10821 | 2005-08-01 22:54:27.000 | 2016 2016 | 522 522 | 2005-08-07 02:15:27.000 | 2 2 | 2020-12-23 07:17:55 |
| 11696 | 2005-08-17 07:01:09.000 | 3816 3816 | 522 522 | 2005-08-21 09:12:09.000 | 2 2 | 2020-12-23 07:18:07 |
| 11830 | 2005-08-17 12:53:15.000 | 3713 3713 | 522 522 | 2005-08-25 08:08:15.000 | 1 1 | 2020-12-23 07:18:09 |
| 12494 | 2005-08-18 12:53:49.000 | 3845 3845 | 522 522 | 2005-08-26 15:52:49.000 | 1 1 | 2020-12-23 07:18:18 |
| 13605 | 2005-08-20 06:06:17.000 | 4446 4446 | 522 522 | 2005-08-26 00:53:17.000 | 2 2 | 2020-12-23 07:18:34 |
| 14467 | 2005-08-21 13:03:33.000 | 1498 1498 | 522 522 | 2005-08-28 15:28:33.000 | 1 1 | 2020-12-23 07:18:47 |
| 15921 | 2005-08-23 18:06:54.000 | 223 223 | 522 522 | 2005-08-30 20:19:54.000 | 2 2 | 2020-12-23 07:19:08 |
Advanced export
JSON shape: default, array, newline-delimited, object
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) ;