rental
21 rows where customer_id = 568
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 |
|---|---|---|---|---|---|---|
| 1658 | 2005-06-16 10:07:10.000 | 272 272 | 568 568 | 2005-06-21 09:23:10.000 | 2 2 | 2020-12-23 07:15:42 |
| 2382 | 2005-06-18 15:03:52.000 | 915 915 | 568 568 | 2005-06-20 10:16:52.000 | 2 2 | 2020-12-23 07:15:52 |
| 2668 | 2005-06-19 11:28:47.000 | 3127 3127 | 568 568 | 2005-06-24 10:12:47.000 | 2 2 | 2020-12-23 07:15:56 |
| 3227 | 2005-06-21 02:18:25.000 | 1156 1156 | 568 568 | 2005-06-27 00:59:25.000 | 1 1 | 2020-12-23 07:16:04 |
| 3462 | 2005-06-21 21:52:52.000 | 547 547 | 568 568 | 2005-06-28 21:41:52.000 | 1 1 | 2020-12-23 07:16:07 |
| 4322 | 2005-07-07 17:54:37.000 | 1522 1522 | 568 568 | 2005-07-14 13:56:37.000 | 1 1 | 2020-12-23 07:16:20 |
| 5332 | 2005-07-09 16:59:23.000 | 3269 3269 | 568 568 | 2005-07-10 16:01:23.000 | 2 2 | 2020-12-23 07:16:35 |
| 5622 | 2005-07-10 05:39:37.000 | 1783 1783 | 568 568 | 2005-07-15 00:48:37.000 | 2 2 | 2020-12-23 07:16:40 |
| 5776 | 2005-07-10 13:35:22.000 | 3592 3592 | 568 568 | 2005-07-12 17:58:22.000 | 1 1 | 2020-12-23 07:16:42 |
| 7068 | 2005-07-27 03:57:50.000 | 4465 4465 | 568 568 | 2005-07-30 04:27:50.000 | 1 1 | 2020-12-23 07:17:01 |
| 8185 | 2005-07-28 22:23:49.000 | 2452 2452 | 568 568 | 2005-07-31 00:07:49.000 | 1 1 | 2020-12-23 07:17:17 |
| 9583 | 2005-07-31 03:05:21.000 | 3543 3543 | 568 568 | 2005-08-06 00:14:21.000 | 2 2 | 2020-12-23 07:17:38 |
| 9738 | 2005-07-31 09:04:14.000 | 2278 2278 | 568 568 | 2005-08-05 14:40:14.000 | 2 2 | 2020-12-23 07:17:40 |
| 10340 | 2005-08-01 05:07:03.000 | 3608 3608 | 568 568 | 2005-08-06 01:03:03.000 | 1 1 | 2020-12-23 07:17:48 |
| 10689 | 2005-08-01 18:04:18.000 | 1442 1442 | 568 568 | 2005-08-05 21:17:18.000 | 2 2 | 2020-12-23 07:17:53 |
| 10869 | 2005-08-02 00:26:54.000 | 2967 2967 | 568 568 | 2005-08-04 03:40:54.000 | 2 2 | 2020-12-23 07:17:56 |
| 11331 | 2005-08-02 16:49:01.000 | 3789 3789 | 568 568 | 2005-08-09 19:15:01.000 | 1 1 | 2020-12-23 07:18:02 |
| 13883 | 2005-08-20 15:28:53.000 | 584 584 | 568 568 | 2005-08-21 13:11:53.000 | 1 1 | 2020-12-23 07:18:39 |
| 14531 | 2006-02-14 15:16:03.000 | 4296 4296 | 568 568 | 2 2 | 2020-12-23 07:18:48 | |
| 15069 | 2005-08-22 10:55:42.000 | 592 592 | 568 568 | 2005-08-28 06:59:42.000 | 2 2 | 2020-12-23 07:18:56 |
| 15203 | 2005-08-22 16:28:00.000 | 743 743 | 568 568 | 2005-08-26 16:55:00.000 | 2 2 | 2020-12-23 07:18:58 |
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) ;