rental
26 rows where customer_id = 516
This data as json, xlsx, CSV (advanced)
Suggested facets: rental_date, 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 |
|---|---|---|---|---|---|---|
| 339 | 2005-05-27 03:47:18.000 | 2410 2410 | 516 516 | 2005-06-04 05:46:18.000 | 2 2 | 2020-12-23 07:15:24 |
| 571 | 2005-05-28 10:17:41.000 | 4250 4250 | 516 516 | 2005-06-05 07:56:41.000 | 1 1 | 2020-12-23 07:15:27 |
| 1159 | 2005-06-14 22:55:13.000 | 4395 4395 | 516 516 | 2005-06-17 02:11:13.000 | 1 1 | 2020-12-23 07:15:35 |
| 1200 | 2005-06-15 01:59:51.000 | 3329 3329 | 516 516 | 2005-06-21 21:33:51.000 | 1 1 | 2020-12-23 07:15:36 |
| 1718 | 2005-06-16 14:52:02.000 | 288 288 | 516 516 | 2005-06-25 10:53:02.000 | 2 2 | 2020-12-23 07:15:43 |
| 2017 | 2005-06-17 12:33:30.000 | 1434 1434 | 516 516 | 2005-06-19 10:08:30.000 | 2 2 | 2020-12-23 07:15:47 |
| 3068 | 2005-06-20 14:02:22.000 | 1958 1958 | 516 516 | 2005-06-22 12:52:22.000 | 2 2 | 2020-12-23 07:16:02 |
| 3431 | 2005-06-21 18:46:48.000 | 133 133 | 516 516 | 2005-06-26 23:08:48.000 | 1 1 | 2020-12-23 07:16:07 |
| 5780 | 2005-07-10 13:46:23.000 | 168 168 | 516 516 | 2005-07-14 17:19:23.000 | 2 2 | 2020-12-23 07:16:42 |
| 6677 | 2005-07-12 11:58:14.000 | 2389 2389 | 516 516 | 2005-07-21 06:05:14.000 | 2 2 | 2020-12-23 07:16:55 |
| 6858 | 2005-07-12 19:53:51.000 | 1095 1095 | 516 516 | 2005-07-19 14:12:51.000 | 1 1 | 2020-12-23 07:16:58 |
| 7628 | 2005-07-28 00:58:04.000 | 1240 1240 | 516 516 | 2005-08-03 19:16:04.000 | 1 1 | 2020-12-23 07:17:09 |
| 7882 | 2005-07-28 10:33:42.000 | 3922 3922 | 516 516 | 2005-07-29 13:49:42.000 | 1 1 | 2020-12-23 07:17:13 |
| 8396 | 2005-07-29 06:07:00.000 | 3911 3911 | 516 516 | 2005-07-30 05:32:00.000 | 2 2 | 2020-12-23 07:17:20 |
| 8534 | 2005-07-29 10:30:13.000 | 4029 4029 | 516 516 | 2005-08-02 04:47:13.000 | 1 1 | 2020-12-23 07:17:22 |
| 8585 | 2005-07-29 12:14:18.000 | 512 512 | 516 516 | 2005-08-03 08:31:18.000 | 2 2 | 2020-12-23 07:17:23 |
| 9243 | 2005-07-30 14:06:27.000 | 876 876 | 516 516 | 2005-08-06 09:26:27.000 | 2 2 | 2020-12-23 07:17:33 |
| 11926 | 2005-08-17 16:25:02.000 | 2111 2111 | 516 516 | 2005-08-22 11:36:02.000 | 1 1 | 2020-12-23 07:18:10 |
| 11939 | 2005-08-17 16:55:57.000 | 3305 3305 | 516 516 | 2005-08-24 21:36:57.000 | 1 1 | 2020-12-23 07:18:10 |
| 12130 | 2006-02-14 15:16:03.000 | 1358 1358 | 516 516 | 2 2 | 2020-12-23 07:18:13 | |
| 12535 | 2005-08-18 14:05:22.000 | 2944 2944 | 516 516 | 2005-08-25 16:35:22.000 | 1 1 | 2020-12-23 07:18:18 |
| 12915 | 2006-02-14 15:16:03.000 | 2651 2651 | 516 516 | 1 1 | 2020-12-23 07:18:24 | |
| 13276 | 2005-08-19 17:53:42.000 | 625 625 | 516 516 | 2005-08-28 20:49:42.000 | 2 2 | 2020-12-23 07:18:29 |
| 14932 | 2005-08-22 05:40:39.000 | 2259 2259 | 516 516 | 2005-08-23 11:02:39.000 | 2 2 | 2020-12-23 07:18:54 |
| 15526 | 2005-08-23 03:44:30.000 | 2892 2892 | 516 516 | 2005-08-30 08:19:30.000 | 1 1 | 2020-12-23 07:19:02 |
| 15701 | 2005-08-23 10:22:21.000 | 2942 2942 | 516 516 | 2005-08-24 10:52:21.000 | 1 1 | 2020-12-23 07:19:05 |
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) ;