rental
23 rows where customer_id = 352
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 |
|---|---|---|---|---|---|---|
| 784 | 2005-05-29 14:44:22.000 | 2936 2936 | 352 352 | 2005-06-01 17:28:22.000 | 2 2 | 2020-12-23 07:15:30 |
| 1498 | 2005-06-15 21:58:00.000 | 3690 3690 | 352 352 | 2005-06-17 21:50:00.000 | 1 1 | 2020-12-23 07:15:40 |
| 1649 | 2005-06-16 09:20:33.000 | 390 390 | 352 352 | 2005-06-18 13:42:33.000 | 1 1 | 2020-12-23 07:15:41 |
| 1678 | 2005-06-16 11:08:28.000 | 1856 1856 | 352 352 | 2005-06-19 15:44:28.000 | 1 1 | 2020-12-23 07:15:42 |
| 1780 | 2005-06-16 19:11:45.000 | 146 146 | 352 352 | 2005-06-19 15:34:45.000 | 2 2 | 2020-12-23 07:15:43 |
| 3331 | 2005-06-21 09:37:53.000 | 2913 2913 | 352 352 | 2005-06-26 04:01:53.000 | 2 2 | 2020-12-23 07:16:05 |
| 4116 | 2005-07-07 06:56:13.000 | 666 666 | 352 352 | 2005-07-11 11:13:13.000 | 2 2 | 2020-12-23 07:16:17 |
| 6329 | 2005-07-11 19:10:38.000 | 2763 2763 | 352 352 | 2005-07-19 14:46:38.000 | 2 2 | 2020-12-23 07:16:50 |
| 7033 | 2005-07-27 03:03:25.000 | 2803 2803 | 352 352 | 2005-07-28 01:57:25.000 | 2 2 | 2020-12-23 07:17:00 |
| 7419 | 2005-07-27 17:04:15.000 | 3454 3454 | 352 352 | 2005-08-05 21:54:15.000 | 2 2 | 2020-12-23 07:17:06 |
| 7512 | 2005-07-27 20:40:40.000 | 1343 1343 | 352 352 | 2005-08-05 01:44:40.000 | 1 1 | 2020-12-23 07:17:07 |
| 7579 | 2005-07-27 23:06:41.000 | 501 501 | 352 352 | 2005-07-31 20:08:41.000 | 2 2 | 2020-12-23 07:17:08 |
| 7845 | 2005-07-28 09:18:07.000 | 38 38 | 352 352 | 2005-08-04 10:23:07.000 | 2 2 | 2020-12-23 07:17:12 |
| 7886 | 2005-07-28 10:37:55.000 | 237 237 | 352 352 | 2005-08-04 13:22:55.000 | 2 2 | 2020-12-23 07:17:13 |
| 9463 | 2005-07-30 22:30:57.000 | 883 883 | 352 352 | 2005-08-03 22:53:57.000 | 1 1 | 2020-12-23 07:17:36 |
| 11793 | 2005-08-17 11:05:53.000 | 1955 1955 | 352 352 | 2005-08-25 12:25:53.000 | 1 1 | 2020-12-23 07:18:08 |
| 11823 | 2005-08-17 12:36:37.000 | 2626 2626 | 352 352 | 2005-08-22 11:10:37.000 | 2 2 | 2020-12-23 07:18:09 |
| 11986 | 2005-08-17 18:21:58.000 | 1610 1610 | 352 352 | 2005-08-18 13:05:58.000 | 1 1 | 2020-12-23 07:18:11 |
| 12234 | 2005-08-18 03:17:33.000 | 3823 3823 | 352 352 | 2005-08-25 04:44:33.000 | 2 2 | 2020-12-23 07:18:14 |
| 12751 | 2005-08-18 22:33:22.000 | 2791 2791 | 352 352 | 2005-08-20 20:28:22.000 | 2 2 | 2020-12-23 07:18:21 |
| 13578 | 2006-02-14 15:16:03.000 | 4301 4301 | 352 352 | 2 2 | 2020-12-23 07:18:34 | |
| 14130 | 2005-08-21 01:43:11.000 | 3859 3859 | 352 352 | 2005-08-27 21:16:11.000 | 2 2 | 2020-12-23 07:18:43 |
| 14852 | 2005-08-22 02:25:53.000 | 2262 2262 | 352 352 | 2005-08-25 04:27:53.000 | 1 1 | 2020-12-23 07:18:53 |
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) ;