rental
23 rows where customer_id = 547
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 |
|---|---|---|---|---|---|---|
| 306 | 2005-05-26 21:31:57.000 | 2781 2781 | 547 547 | 2005-05-28 19:37:57.000 | 1 1 | 2020-12-23 07:15:24 |
| 443 | 2005-05-27 18:35:20.000 | 2021 2021 | 547 547 | 2005-06-04 18:58:20.000 | 1 1 | 2020-12-23 07:15:25 |
| 1094 | 2005-05-31 13:03:49.000 | 3810 3810 | 547 547 | 2005-06-05 14:30:49.000 | 2 2 | 2020-12-23 07:15:34 |
| 2022 | 2005-06-17 12:44:39.000 | 3053 3053 | 547 547 | 2005-06-25 12:32:39.000 | 1 1 | 2020-12-23 07:15:47 |
| 3679 | 2005-07-06 09:15:57.000 | 2186 2186 | 547 547 | 2005-07-08 03:20:57.000 | 1 1 | 2020-12-23 07:16:11 |
| 3765 | 2005-07-06 13:01:47.000 | 1805 1805 | 547 547 | 2005-07-09 07:10:47.000 | 1 1 | 2020-12-23 07:16:12 |
| 5327 | 2005-07-09 16:39:49.000 | 3657 3657 | 547 547 | 2005-07-12 18:47:49.000 | 2 2 | 2020-12-23 07:16:35 |
| 5854 | 2005-07-10 17:47:34.000 | 997 997 | 547 547 | 2005-07-13 20:14:34.000 | 2 2 | 2020-12-23 07:16:43 |
| 6605 | 2005-07-12 08:01:07.000 | 2892 2892 | 547 547 | 2005-07-19 03:12:07.000 | 1 1 | 2020-12-23 07:16:54 |
| 7420 | 2005-07-27 17:09:39.000 | 3505 3505 | 547 547 | 2005-07-30 12:30:39.000 | 2 2 | 2020-12-23 07:17:06 |
| 7547 | 2005-07-27 21:51:48.000 | 1733 1733 | 547 547 | 2005-08-06 01:05:48.000 | 2 2 | 2020-12-23 07:17:08 |
| 7835 | 2005-07-28 08:49:39.000 | 43 43 | 547 547 | 2005-08-02 07:16:39.000 | 2 2 | 2020-12-23 07:17:12 |
| 7859 | 2005-07-28 09:57:17.000 | 3392 3392 | 547 547 | 2005-08-04 06:04:17.000 | 1 1 | 2020-12-23 07:17:12 |
| 8828 | 2005-07-29 22:32:54.000 | 1608 1608 | 547 547 | 2005-07-30 20:41:54.000 | 1 1 | 2020-12-23 07:17:27 |
| 10903 | 2005-08-02 01:41:59.000 | 2696 2696 | 547 547 | 2005-08-06 23:03:59.000 | 1 1 | 2020-12-23 07:17:56 |
| 10980 | 2005-08-02 04:17:32.000 | 150 150 | 547 547 | 2005-08-04 05:12:32.000 | 1 1 | 2020-12-23 07:17:57 |
| 11170 | 2005-08-02 10:21:53.000 | 1333 1333 | 547 547 | 2005-08-08 11:08:53.000 | 1 1 | 2020-12-23 07:18:00 |
| 11361 | 2005-08-02 17:46:34.000 | 1124 1124 | 547 547 | 2005-08-03 15:21:34.000 | 1 1 | 2020-12-23 07:18:03 |
| 12579 | 2005-08-18 15:47:49.000 | 3021 3021 | 547 547 | 2005-08-20 18:12:49.000 | 2 2 | 2020-12-23 07:18:19 |
| 12943 | 2005-08-19 05:46:26.000 | 3930 3930 | 547 547 | 2005-08-22 03:26:26.000 | 2 2 | 2020-12-23 07:18:24 |
| 13307 | 2005-08-19 18:58:44.000 | 2242 2242 | 547 547 | 2005-08-22 00:15:44.000 | 1 1 | 2020-12-23 07:18:30 |
| 14510 | 2005-08-21 14:44:41.000 | 1868 1868 | 547 547 | 2005-08-30 20:19:41.000 | 1 1 | 2020-12-23 07:18:48 |
| 14884 | 2005-08-22 03:57:08.000 | 2957 2957 | 547 547 | 2005-08-23 07:11:08.000 | 1 1 | 2020-12-23 07:18:53 |
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) ;