rental
23 rows where customer_id = 493
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 |
|---|---|---|---|---|---|---|
| 543 | 2005-05-28 06:43:34.000 | 530 530 | 493 493 | 2005-06-06 07:16:34.000 | 2 2 | 2020-12-23 07:15:27 |
| 2109 | 2005-06-17 19:41:42.000 | 2292 2292 | 493 493 | 2005-06-25 17:03:42.000 | 2 2 | 2020-12-23 07:15:48 |
| 2365 | 2005-06-18 13:45:34.000 | 3109 3109 | 493 493 | 2005-06-21 12:12:34.000 | 2 2 | 2020-12-23 07:15:52 |
| 2579 | 2005-06-19 04:40:44.000 | 3836 3836 | 493 493 | 2005-06-22 09:22:44.000 | 1 1 | 2020-12-23 07:15:55 |
| 2864 | 2005-06-20 00:00:52.000 | 1056 1056 | 493 493 | 2005-06-26 04:21:52.000 | 2 2 | 2020-12-23 07:15:59 |
| 3586 | 2005-07-06 04:24:42.000 | 616 616 | 493 493 | 2005-07-09 02:37:42.000 | 1 1 | 2020-12-23 07:16:09 |
| 3655 | 2005-07-06 07:52:54.000 | 1540 1540 | 493 493 | 2005-07-15 10:49:54.000 | 2 2 | 2020-12-23 07:16:10 |
| 6549 | 2005-07-12 05:02:01.000 | 2688 2688 | 493 493 | 2005-07-20 06:19:01.000 | 2 2 | 2020-12-23 07:16:53 |
| 6552 | 2005-07-12 05:05:06.000 | 766 766 | 493 493 | 2005-07-13 05:12:06.000 | 2 2 | 2020-12-23 07:16:53 |
| 7026 | 2005-07-27 02:48:58.000 | 3456 3456 | 493 493 | 2005-07-29 03:41:58.000 | 2 2 | 2020-12-23 07:17:00 |
| 7043 | 2005-07-27 03:24:23.000 | 3422 3422 | 493 493 | 2005-08-05 02:55:23.000 | 2 2 | 2020-12-23 07:17:00 |
| 8298 | 2005-07-29 02:47:36.000 | 952 952 | 493 493 | 2005-08-05 07:58:36.000 | 2 2 | 2020-12-23 07:17:19 |
| 8616 | 2005-07-29 13:39:09.000 | 2583 2583 | 493 493 | 2005-08-01 16:49:09.000 | 1 1 | 2020-12-23 07:17:24 |
| 10777 | 2005-08-01 21:03:50.000 | 3487 3487 | 493 493 | 2005-08-06 19:29:50.000 | 1 1 | 2020-12-23 07:17:55 |
| 10885 | 2005-08-02 00:51:37.000 | 4223 4223 | 493 493 | 2005-08-09 20:49:37.000 | 2 2 | 2020-12-23 07:17:56 |
| 13638 | 2005-08-20 07:21:15.000 | 3255 3255 | 493 493 | 2005-08-23 11:09:15.000 | 2 2 | 2020-12-23 07:18:35 |
| 13675 | 2005-08-20 08:32:51.000 | 350 350 | 493 493 | 2005-08-27 03:52:51.000 | 2 2 | 2020-12-23 07:18:35 |
| 14117 | 2005-08-21 01:11:59.000 | 573 573 | 493 493 | 2005-08-22 06:56:59.000 | 1 1 | 2020-12-23 07:18:42 |
| 14160 | 2006-02-14 15:16:03.000 | 2428 2428 | 493 493 | 2 2 | 2020-12-23 07:18:43 | |
| 15177 | 2005-08-22 15:34:49.000 | 838 838 | 493 493 | 2005-08-26 12:54:49.000 | 1 1 | 2020-12-23 07:18:57 |
| 15355 | 2005-08-22 21:19:24.000 | 3477 3477 | 493 493 | 2005-08-28 20:36:24.000 | 2 2 | 2020-12-23 07:19:00 |
| 15490 | 2005-08-23 02:08:18.000 | 3922 3922 | 493 493 | 2005-08-30 06:15:18.000 | 1 1 | 2020-12-23 07:19:02 |
| 15878 | 2005-08-23 16:34:31.000 | 1592 1592 | 493 493 | 2005-08-27 21:51:31.000 | 2 2 | 2020-12-23 07:19:07 |
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) ;