rental
28 rows where customer_id = 596
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 |
|---|---|---|---|---|---|---|
| 303 | 2005-05-26 21:16:52.000 | 1111 1111 | 596 596 | 2005-05-27 23:41:52.000 | 2 2 | 2020-12-23 07:15:24 |
| 625 | 2005-05-28 16:35:46.000 | 2889 2889 | 596 596 | 2005-06-01 14:19:46.000 | 1 1 | 2020-12-23 07:15:28 |
| 667 | 2005-05-28 21:49:02.000 | 797 797 | 596 596 | 2005-05-31 03:07:02.000 | 1 1 | 2020-12-23 07:15:28 |
| 782 | 2005-05-29 14:38:57.000 | 2255 2255 | 596 596 | 2005-06-02 13:18:57.000 | 2 2 | 2020-12-23 07:15:30 |
| 914 | 2005-05-30 11:06:00.000 | 1393 1393 | 596 596 | 2005-06-04 06:07:00.000 | 2 2 | 2020-12-23 07:15:32 |
| 974 | 2005-05-30 20:28:42.000 | 2617 2617 | 596 596 | 2005-06-08 23:45:42.000 | 2 2 | 2020-12-23 07:15:33 |
| 1644 | 2005-06-16 08:58:18.000 | 749 749 | 596 596 | 2005-06-21 06:47:18.000 | 1 1 | 2020-12-23 07:15:41 |
| 2767 | 2005-06-19 17:46:35.000 | 4052 4052 | 596 596 | 2005-06-24 22:42:35.000 | 1 1 | 2020-12-23 07:15:58 |
| 5742 | 2005-07-10 11:56:18.000 | 3975 3975 | 596 596 | 2005-07-19 06:59:18.000 | 2 2 | 2020-12-23 07:16:41 |
| 6015 | 2005-07-11 02:04:12.000 | 295 295 | 596 596 | 2005-07-13 02:43:12.000 | 2 2 | 2020-12-23 07:16:45 |
| 6017 | 2005-07-11 02:05:32.000 | 4088 4088 | 596 596 | 2005-07-14 22:50:32.000 | 1 1 | 2020-12-23 07:16:45 |
| 6197 | 2005-07-11 12:09:51.000 | 4156 4156 | 596 596 | 2005-07-12 06:15:51.000 | 1 1 | 2020-12-23 07:16:48 |
| 6883 | 2005-07-12 20:50:48.000 | 468 468 | 596 596 | 2005-07-19 16:00:48.000 | 2 2 | 2020-12-23 07:16:58 |
| 10094 | 2005-07-31 20:31:18.000 | 2865 2865 | 596 596 | 2005-08-06 18:31:18.000 | 2 2 | 2020-12-23 07:17:45 |
| 10692 | 2005-08-01 18:12:35.000 | 371 371 | 596 596 | 2005-08-07 13:06:35.000 | 1 1 | 2020-12-23 07:17:54 |
| 10756 | 2005-08-01 20:17:03.000 | 4247 4247 | 596 596 | 2005-08-08 18:31:03.000 | 2 2 | 2020-12-23 07:17:54 |
| 10804 | 2005-08-01 22:22:11.000 | 2915 2915 | 596 596 | 2005-08-03 03:42:11.000 | 2 2 | 2020-12-23 07:17:55 |
| 11009 | 2005-08-02 05:06:23.000 | 2574 2574 | 596 596 | 2005-08-08 03:02:23.000 | 1 1 | 2020-12-23 07:17:58 |
| 11852 | 2005-08-17 13:38:27.000 | 2358 2358 | 596 596 | 2005-08-24 08:50:27.000 | 1 1 | 2020-12-23 07:18:09 |
| 11934 | 2005-08-17 16:40:00.000 | 1230 1230 | 596 596 | 2005-08-20 20:13:00.000 | 2 2 | 2020-12-23 07:18:10 |
| 12560 | 2005-08-18 14:54:19.000 | 829 829 | 596 596 | 2005-08-27 13:39:19.000 | 1 1 | 2020-12-23 07:18:19 |
| 12878 | 2005-08-19 03:17:08.000 | 1182 1182 | 596 596 | 2005-08-23 03:44:08.000 | 1 1 | 2020-12-23 07:18:23 |
| 13648 | 2005-08-20 07:48:10.000 | 3921 3921 | 596 596 | 2005-08-22 12:15:10.000 | 2 2 | 2020-12-23 07:18:35 |
| 14050 | 2005-08-20 22:09:04.000 | 1737 1737 | 596 596 | 2005-08-26 01:39:04.000 | 2 2 | 2020-12-23 07:18:41 |
| 14417 | 2005-08-21 11:13:35.000 | 1768 1768 | 596 596 | 2005-08-25 11:27:35.000 | 1 1 | 2020-12-23 07:18:47 |
| 15405 | 2005-08-22 23:20:41.000 | 3263 3263 | 596 596 | 2005-08-25 23:53:41.000 | 1 1 | 2020-12-23 07:19:01 |
| 15423 | 2006-02-14 15:16:03.000 | 1786 1786 | 596 596 | 1 1 | 2020-12-23 07:19:01 | |
| 15899 | 2005-08-23 17:16:28.000 | 3851 3851 | 596 596 | 2005-08-29 21:46:28.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) ;