rental
24 rows where customer_id = 541
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 |
|---|---|---|---|---|---|---|
| 1021 | 2005-05-31 03:16:15.000 | 2724 2724 | 541 541 | 2005-06-08 06:43:15.000 | 2 2 | 2020-12-23 07:15:33 |
| 1066 | 2005-05-31 09:07:33.000 | 2383 2383 | 541 541 | 2005-06-09 05:34:33.000 | 2 2 | 2020-12-23 07:15:34 |
| 1986 | 2005-06-17 10:34:59.000 | 2894 2894 | 541 541 | 2005-06-24 04:57:59.000 | 2 2 | 2020-12-23 07:15:47 |
| 2708 | 2005-06-19 13:59:05.000 | 2659 2659 | 541 541 | 2005-06-24 10:02:05.000 | 2 2 | 2020-12-23 07:15:57 |
| 5018 | 2005-07-09 02:01:05.000 | 2317 2317 | 541 541 | 2005-07-10 04:09:05.000 | 1 1 | 2020-12-23 07:16:31 |
| 5197 | 2005-07-09 10:43:54.000 | 1571 1571 | 541 541 | 2005-07-16 10:19:54.000 | 1 1 | 2020-12-23 07:16:33 |
| 6468 | 2005-07-12 01:27:09.000 | 4560 4560 | 541 541 | 2005-07-20 00:37:09.000 | 2 2 | 2020-12-23 07:16:52 |
| 6718 | 2005-07-12 13:38:06.000 | 2283 2283 | 541 541 | 2005-07-18 09:05:06.000 | 1 1 | 2020-12-23 07:16:55 |
| 8113 | 2005-07-28 19:14:00.000 | 4269 4269 | 541 541 | 2005-08-06 00:05:00.000 | 2 2 | 2020-12-23 07:17:16 |
| 8322 | 2005-07-29 03:52:49.000 | 301 301 | 541 541 | 2005-08-02 22:53:49.000 | 1 1 | 2020-12-23 07:17:19 |
| 9603 | 2005-07-31 03:43:43.000 | 2266 2266 | 541 541 | 2005-08-02 00:11:43.000 | 2 2 | 2020-12-23 07:17:38 |
| 10306 | 2005-08-01 04:19:18.000 | 2819 2819 | 541 541 | 2005-08-09 02:16:18.000 | 1 1 | 2020-12-23 07:17:48 |
| 11273 | 2005-08-02 14:20:55.000 | 3383 3383 | 541 541 | 2005-08-07 12:57:55.000 | 1 1 | 2020-12-23 07:18:01 |
| 12306 | 2005-08-18 05:47:55.000 | 3853 3853 | 541 541 | 2005-08-21 01:56:55.000 | 1 1 | 2020-12-23 07:18:15 |
| 12395 | 2005-08-18 09:06:30.000 | 2020 2020 | 541 541 | 2005-08-21 12:09:30.000 | 2 2 | 2020-12-23 07:18:17 |
| 12894 | 2005-08-19 03:49:28.000 | 4581 4581 | 541 541 | 2005-08-25 01:51:28.000 | 2 2 | 2020-12-23 07:18:24 |
| 13239 | 2005-08-19 16:22:13.000 | 3296 3296 | 541 541 | 2005-08-23 19:26:13.000 | 1 1 | 2020-12-23 07:18:29 |
| 13640 | 2005-08-20 07:22:53.000 | 3427 3427 | 541 541 | 2005-08-21 11:54:53.000 | 2 2 | 2020-12-23 07:18:35 |
| 14938 | 2005-08-22 05:52:39.000 | 408 408 | 541 541 | 2005-08-31 11:43:39.000 | 1 1 | 2020-12-23 07:18:54 |
| 15071 | 2005-08-22 10:58:43.000 | 417 417 | 541 541 | 2005-08-31 14:53:43.000 | 1 1 | 2020-12-23 07:18:56 |
| 15141 | 2005-08-22 13:41:49.000 | 227 227 | 541 541 | 2005-08-28 15:25:49.000 | 2 2 | 2020-12-23 07:18:57 |
| 15223 | 2005-08-22 17:13:39.000 | 2263 2263 | 541 541 | 2005-08-27 11:17:39.000 | 2 2 | 2020-12-23 07:18:58 |
| 15421 | 2005-08-22 23:56:37.000 | 3 3 | 541 541 | 2005-08-25 18:58:37.000 | 2 2 | 2020-12-23 07:19:01 |
| 15924 | 2005-08-23 18:08:59.000 | 1114 1114 | 541 541 | 2005-08-27 12:20:59.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) ;