rental
30 rows where customer_id = 499
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 |
|---|---|---|---|---|---|---|
| 89 | 2005-05-25 14:28:29.000 | 2181 2181 | 499 499 | 2005-05-29 14:33:29.000 | 1 1 | 2020-12-23 07:15:21 |
| 1355 | 2005-06-15 13:13:59.000 | 4203 4203 | 499 499 | 2005-06-20 12:23:59.000 | 1 1 | 2020-12-23 07:15:38 |
| 1526 | 2005-06-16 00:27:51.000 | 1940 1940 | 499 499 | 2005-06-19 00:19:51.000 | 1 1 | 2020-12-23 07:15:40 |
| 1830 | 2005-06-16 22:18:43.000 | 4010 4010 | 499 499 | 2005-06-23 21:14:43.000 | 2 2 | 2020-12-23 07:15:44 |
| 3241 | 2005-06-21 02:54:32.000 | 1442 1442 | 499 499 | 2005-06-26 21:56:32.000 | 2 2 | 2020-12-23 07:16:04 |
| 3794 | 2005-07-06 14:35:26.000 | 584 584 | 499 499 | 2005-07-11 14:40:26.000 | 2 2 | 2020-12-23 07:16:12 |
| 5022 | 2005-07-09 02:10:54.000 | 928 928 | 499 499 | 2005-07-17 08:07:54.000 | 2 2 | 2020-12-23 07:16:31 |
| 5392 | 2005-07-09 19:32:30.000 | 2552 2552 | 499 499 | 2005-07-16 15:01:30.000 | 1 1 | 2020-12-23 07:16:36 |
| 5427 | 2005-07-09 21:12:26.000 | 3197 3197 | 499 499 | 2005-07-14 01:02:26.000 | 1 1 | 2020-12-23 07:16:37 |
| 5956 | 2005-07-10 23:23:08.000 | 2536 2536 | 499 499 | 2005-07-13 17:36:08.000 | 1 1 | 2020-12-23 07:16:45 |
| 6723 | 2005-07-12 13:44:57.000 | 2678 2678 | 499 499 | 2005-07-14 15:57:57.000 | 2 2 | 2020-12-23 07:16:55 |
| 7800 | 2005-07-28 07:50:59.000 | 3386 3386 | 499 499 | 2005-07-29 07:31:59.000 | 2 2 | 2020-12-23 07:17:12 |
| 7831 | 2005-07-28 08:44:21.000 | 4436 4436 | 499 499 | 2005-07-30 03:25:21.000 | 2 2 | 2020-12-23 07:17:12 |
| 7898 | 2005-07-28 11:08:22.000 | 2680 2680 | 499 499 | 2005-08-03 12:28:22.000 | 1 1 | 2020-12-23 07:17:13 |
| 8130 | 2005-07-28 19:48:15.000 | 4055 4055 | 499 499 | 2005-08-05 14:18:15.000 | 2 2 | 2020-12-23 07:17:16 |
| 8770 | 2005-07-29 19:53:50.000 | 4025 4025 | 499 499 | 2005-08-05 14:22:50.000 | 1 1 | 2020-12-23 07:17:26 |
| 9588 | 2005-07-31 03:13:13.000 | 1368 1368 | 499 499 | 2005-08-02 04:06:13.000 | 1 1 | 2020-12-23 07:17:38 |
| 10333 | 2005-08-01 04:58:32.000 | 3955 3955 | 499 499 | 2005-08-04 00:51:32.000 | 2 2 | 2020-12-23 07:17:48 |
| 10497 | 2005-08-01 10:55:59.000 | 1060 1060 | 499 499 | 2005-08-07 11:15:59.000 | 1 1 | 2020-12-23 07:17:51 |
| 11513 | 2005-08-16 23:51:33.000 | 4473 4473 | 499 499 | 2005-08-24 01:37:33.000 | 2 2 | 2020-12-23 07:18:05 |
| 11606 | 2005-08-17 03:32:43.000 | 4138 4138 | 499 499 | 2005-08-18 04:30:43.000 | 1 1 | 2020-12-23 07:18:06 |
| 11978 | 2005-08-17 18:02:10.000 | 4380 4380 | 499 499 | 2005-08-18 20:40:10.000 | 2 2 | 2020-12-23 07:18:11 |
| 12004 | 2005-08-17 18:56:53.000 | 2690 2690 | 499 499 | 2005-08-26 14:56:53.000 | 1 1 | 2020-12-23 07:18:11 |
| 12354 | 2005-08-18 07:34:07.000 | 2913 2913 | 499 499 | 2005-08-26 05:56:07.000 | 1 1 | 2020-12-23 07:18:16 |
| 12436 | 2005-08-18 10:41:05.000 | 3761 3761 | 499 499 | 2005-08-23 07:36:05.000 | 2 2 | 2020-12-23 07:18:17 |
| 12587 | 2005-08-18 16:03:13.000 | 3081 3081 | 499 499 | 2005-08-25 19:30:13.000 | 1 1 | 2020-12-23 07:18:19 |
| 12947 | 2005-08-19 05:54:21.000 | 935 935 | 499 499 | 2005-08-22 09:17:21.000 | 1 1 | 2020-12-23 07:18:24 |
| 13822 | 2005-08-20 13:39:28.000 | 807 807 | 499 499 | 2005-08-24 07:40:28.000 | 1 1 | 2020-12-23 07:18:38 |
| 14858 | 2005-08-22 02:46:18.000 | 366 366 | 499 499 | 2005-08-30 08:22:18.000 | 1 1 | 2020-12-23 07:18:53 |
| 15587 | 2005-08-23 06:00:28.000 | 2510 2510 | 499 499 | 2005-08-29 10:15:28.000 | 1 1 | 2020-12-23 07:19:03 |
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) ;