rental
22 rows where customer_id = 578
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 |
|---|---|---|---|---|---|---|
| 660 | 2005-05-28 20:53:31.000 | 1414 1414 | 578 578 | 2005-05-30 15:26:31.000 | 1 1 | 2020-12-23 07:15:28 |
| 1826 | 2005-06-16 21:53:52.000 | 421 421 | 578 578 | 2005-06-25 18:46:52.000 | 2 2 | 2020-12-23 07:15:44 |
| 2615 | 2005-06-19 07:29:13.000 | 3810 3810 | 578 578 | 2005-06-27 12:50:13.000 | 1 1 | 2020-12-23 07:15:56 |
| 3305 | 2005-06-21 07:46:57.000 | 2811 2811 | 578 578 | 2005-06-27 06:16:57.000 | 1 1 | 2020-12-23 07:16:05 |
| 4496 | 2005-07-08 01:44:19.000 | 150 150 | 578 578 | 2005-07-08 20:34:19.000 | 2 2 | 2020-12-23 07:16:23 |
| 5377 | 2005-07-09 19:04:30.000 | 3118 3118 | 578 578 | 2005-07-11 14:42:30.000 | 1 1 | 2020-12-23 07:16:36 |
| 5445 | 2005-07-09 21:59:41.000 | 565 565 | 578 578 | 2005-07-15 00:40:41.000 | 1 1 | 2020-12-23 07:16:37 |
| 5876 | 2005-07-10 19:07:15.000 | 4445 4445 | 578 578 | 2005-07-14 17:29:15.000 | 2 2 | 2020-12-23 07:16:43 |
| 6784 | 2005-07-12 16:28:49.000 | 197 197 | 578 578 | 2005-07-15 17:27:49.000 | 1 1 | 2020-12-23 07:16:56 |
| 6830 | 2005-07-12 18:42:55.000 | 1943 1943 | 578 578 | 2005-07-17 17:58:55.000 | 1 1 | 2020-12-23 07:16:57 |
| 7059 | 2005-07-27 03:51:02.000 | 129 129 | 578 578 | 2005-08-02 22:04:02.000 | 1 1 | 2020-12-23 07:17:01 |
| 8179 | 2005-07-28 22:05:13.000 | 2902 2902 | 578 578 | 2005-07-30 21:57:13.000 | 2 2 | 2020-12-23 07:17:17 |
| 8218 | 2005-07-28 23:45:41.000 | 2769 2769 | 578 578 | 2005-08-02 00:14:41.000 | 1 1 | 2020-12-23 07:17:18 |
| 9970 | 2005-07-31 16:38:24.000 | 2846 2846 | 578 578 | 2005-08-02 12:59:24.000 | 2 2 | 2020-12-23 07:17:43 |
| 10029 | 2005-07-31 18:37:47.000 | 505 505 | 578 578 | 2005-08-06 14:58:47.000 | 2 2 | 2020-12-23 07:17:44 |
| 10182 | 2005-08-01 00:08:01.000 | 4112 4112 | 578 578 | 2005-08-09 18:14:01.000 | 2 2 | 2020-12-23 07:17:46 |
| 10779 | 2005-08-01 21:11:54.000 | 2092 2092 | 578 578 | 2005-08-09 21:00:54.000 | 2 2 | 2020-12-23 07:17:55 |
| 11199 | 2005-08-02 11:47:40.000 | 3926 3926 | 578 578 | 2005-08-10 06:52:40.000 | 2 2 | 2020-12-23 07:18:00 |
| 13071 | 2005-08-19 10:01:07.000 | 527 527 | 578 578 | 2005-08-26 14:26:07.000 | 1 1 | 2020-12-23 07:18:26 |
| 13498 | 2005-08-20 01:51:23.000 | 1603 1603 | 578 578 | 2005-08-24 05:32:23.000 | 1 1 | 2020-12-23 07:18:33 |
| 13552 | 2005-08-20 04:03:51.000 | 758 758 | 578 578 | 2005-08-23 02:48:51.000 | 2 2 | 2020-12-23 07:18:34 |
| 15652 | 2005-08-23 08:34:10.000 | 4440 4440 | 578 578 | 2005-08-30 12:31:10.000 | 1 1 | 2020-12-23 07:19:04 |
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) ;