rental
23 rows where customer_id = 521
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 |
|---|---|---|---|---|---|---|
| 1761 | 2005-06-16 17:49:57.000 | 1570 1570 | 521 521 | 2005-06-17 21:03:57.000 | 2 2 | 2020-12-23 07:15:43 |
| 2053 | 2005-06-17 15:19:34.000 | 4279 4279 | 521 521 | 2005-06-19 10:06:34.000 | 2 2 | 2020-12-23 07:15:48 |
| 4284 | 2005-07-07 15:31:57.000 | 1313 1313 | 521 521 | 2005-07-09 10:20:57.000 | 2 2 | 2020-12-23 07:16:20 |
| 4439 | 2005-07-07 22:57:30.000 | 2393 2393 | 521 521 | 2005-07-10 18:28:30.000 | 1 1 | 2020-12-23 07:16:22 |
| 5276 | 2005-07-09 14:35:13.000 | 2524 2524 | 521 521 | 2005-07-12 14:24:13.000 | 2 2 | 2020-12-23 07:16:34 |
| 5458 | 2005-07-09 22:35:49.000 | 2203 2203 | 521 521 | 2005-07-16 22:55:49.000 | 1 1 | 2020-12-23 07:16:37 |
| 5580 | 2005-07-10 04:05:49.000 | 2753 2753 | 521 521 | 2005-07-18 22:36:49.000 | 2 2 | 2020-12-23 07:16:39 |
| 5686 | 2005-07-10 09:06:03.000 | 717 717 | 521 521 | 2005-07-11 10:59:03.000 | 2 2 | 2020-12-23 07:16:41 |
| 7478 | 2005-07-27 19:16:02.000 | 3791 3791 | 521 521 | 2005-08-04 22:30:02.000 | 2 2 | 2020-12-23 07:17:07 |
| 9556 | 2005-07-31 02:13:30.000 | 3269 3269 | 521 521 | 2005-08-08 06:46:30.000 | 1 1 | 2020-12-23 07:17:37 |
| 9937 | 2005-07-31 15:28:10.000 | 3697 3697 | 521 521 | 2005-08-06 21:20:10.000 | 2 2 | 2020-12-23 07:17:43 |
| 10587 | 2005-08-01 14:03:38.000 | 3000 3000 | 521 521 | 2005-08-08 19:59:38.000 | 2 2 | 2020-12-23 07:17:52 |
| 11625 | 2005-08-17 04:18:52.000 | 712 712 | 521 521 | 2005-08-25 03:05:52.000 | 2 2 | 2020-12-23 07:18:06 |
| 11672 | 2006-02-14 15:16:03.000 | 3947 3947 | 521 521 | 2 2 | 2020-12-23 07:18:07 | |
| 11967 | 2005-08-17 17:45:00.000 | 1151 1151 | 521 521 | 2005-08-22 13:03:00.000 | 1 1 | 2020-12-23 07:18:11 |
| 12082 | 2005-08-17 22:13:15.000 | 3435 3435 | 521 521 | 2005-08-24 18:30:15.000 | 1 1 | 2020-12-23 07:18:12 |
| 12530 | 2005-08-18 13:54:48.000 | 1054 1054 | 521 521 | 2005-08-26 08:58:48.000 | 2 2 | 2020-12-23 07:18:18 |
| 13527 | 2005-08-20 03:00:47.000 | 4424 4424 | 521 521 | 2005-08-25 01:03:47.000 | 1 1 | 2020-12-23 07:18:33 |
| 14423 | 2005-08-21 11:23:59.000 | 2873 2873 | 521 521 | 2005-08-26 11:52:59.000 | 2 2 | 2020-12-23 07:18:47 |
| 14551 | 2005-08-21 15:57:25.000 | 496 496 | 521 521 | 2005-08-28 11:10:25.000 | 2 2 | 2020-12-23 07:18:48 |
| 14738 | 2005-08-21 22:29:13.000 | 3315 3315 | 521 521 | 2005-08-29 21:19:13.000 | 1 1 | 2020-12-23 07:18:51 |
| 15170 | 2005-08-22 15:22:15.000 | 2123 2123 | 521 521 | 2005-08-23 20:32:15.000 | 1 1 | 2020-12-23 07:18:57 |
| 15329 | 2005-08-22 20:32:39.000 | 1900 1900 | 521 521 | 2005-08-23 17:15:39.000 | 1 1 | 2020-12-23 07:19:00 |
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) ;