rental
23 rows where customer_id = 177
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 |
|---|---|---|---|---|---|---|
| 1393 | 2005-06-15 16:12:50.000 | 2767 2767 | 177 177 | 2005-06-19 10:40:50.000 | 2 2 | 2020-12-23 07:15:38 |
| 1524 | 2005-06-16 00:25:52.000 | 3439 3439 | 177 177 | 2005-06-19 03:32:52.000 | 1 1 | 2020-12-23 07:15:40 |
| 1621 | 2005-06-16 07:24:12.000 | 3677 3677 | 177 177 | 2005-06-19 02:35:12.000 | 1 1 | 2020-12-23 07:15:41 |
| 1738 | 2005-06-16 16:07:27.000 | 3260 3260 | 177 177 | 2005-06-20 15:22:27.000 | 1 1 | 2020-12-23 07:15:43 |
| 2467 | 2005-06-18 20:20:05.000 | 4387 4387 | 177 177 | 2005-06-20 17:01:05.000 | 1 1 | 2020-12-23 07:15:53 |
| 4760 | 2005-07-08 14:48:07.000 | 3718 3718 | 177 177 | 2005-07-10 12:41:07.000 | 2 2 | 2020-12-23 07:16:27 |
| 6217 | 2005-07-11 13:13:45.000 | 1090 1090 | 177 177 | 2005-07-19 16:37:45.000 | 2 2 | 2020-12-23 07:16:48 |
| 6284 | 2005-07-11 16:51:39.000 | 2938 2938 | 177 177 | 2005-07-15 19:59:39.000 | 1 1 | 2020-12-23 07:16:49 |
| 7493 | 2005-07-27 19:55:46.000 | 2868 2868 | 177 177 | 2005-08-02 19:46:46.000 | 2 2 | 2020-12-23 07:17:07 |
| 7674 | 2005-07-28 02:54:30.000 | 682 682 | 177 177 | 2005-08-05 23:09:30.000 | 1 1 | 2020-12-23 07:17:10 |
| 8139 | 2005-07-28 20:16:30.000 | 3651 3651 | 177 177 | 2005-08-03 18:00:30.000 | 2 2 | 2020-12-23 07:17:16 |
| 9190 | 2005-07-30 12:24:17.000 | 4421 4421 | 177 177 | 2005-08-03 07:41:17.000 | 2 2 | 2020-12-23 07:17:32 |
| 10321 | 2005-08-01 04:40:02.000 | 4512 4512 | 177 177 | 2005-08-03 04:18:02.000 | 1 1 | 2020-12-23 07:17:48 |
| 10661 | 2005-08-01 16:48:31.000 | 3311 3311 | 177 177 | 2005-08-02 21:02:31.000 | 1 1 | 2020-12-23 07:17:53 |
| 10710 | 2005-08-01 18:44:36.000 | 3082 3082 | 177 177 | 2005-08-03 13:17:36.000 | 1 1 | 2020-12-23 07:17:54 |
| 11195 | 2005-08-02 11:42:23.000 | 4359 4359 | 177 177 | 2005-08-03 08:29:23.000 | 1 1 | 2020-12-23 07:18:00 |
| 11376 | 2005-08-02 18:16:00.000 | 2530 2530 | 177 177 | 2005-08-11 23:38:00.000 | 2 2 | 2020-12-23 07:18:03 |
| 11662 | 2005-08-17 05:27:37.000 | 2730 2730 | 177 177 | 2005-08-26 09:56:37.000 | 2 2 | 2020-12-23 07:18:07 |
| 12623 | 2005-08-18 17:34:19.000 | 3670 3670 | 177 177 | 2005-08-20 21:30:19.000 | 1 1 | 2020-12-23 07:18:20 |
| 14093 | 2005-08-21 00:21:29.000 | 1176 1176 | 177 177 | 2005-08-22 04:01:29.000 | 1 1 | 2020-12-23 07:18:42 |
| 14310 | 2005-08-21 07:44:32.000 | 95 95 | 177 177 | 2005-08-22 09:02:32.000 | 1 1 | 2020-12-23 07:18:45 |
| 14849 | 2005-08-22 02:15:26.000 | 3354 3354 | 177 177 | 2005-08-28 00:56:26.000 | 2 2 | 2020-12-23 07:18:52 |
| 14883 | 2005-08-22 03:55:02.000 | 1946 1946 | 177 177 | 2005-08-28 02:51:02.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) ;