rental
27 rows where customer_id = 40
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 |
|---|---|---|---|---|---|---|
| 128 | 2005-05-25 21:19:53.000 | 4322 4322 | 40 40 | 2005-05-29 23:34:53.000 | 1 1 | 2020-12-23 07:15:21 |
| 2470 | 2005-06-18 20:28:31.000 | 4319 4319 | 40 40 | 2005-06-25 18:48:31.000 | 1 1 | 2020-12-23 07:15:53 |
| 2896 | 2005-06-20 02:33:42.000 | 1086 1086 | 40 40 | 2005-06-26 05:29:42.000 | 2 2 | 2020-12-23 07:15:59 |
| 2993 | 2005-06-20 09:12:12.000 | 1527 1527 | 40 40 | 2005-06-22 13:36:12.000 | 2 2 | 2020-12-23 07:16:01 |
| 3428 | 2005-06-21 18:39:34.000 | 1959 1959 | 40 40 | 2005-06-22 18:23:34.000 | 2 2 | 2020-12-23 07:16:07 |
| 5001 | 2005-07-09 01:17:04.000 | 2025 2025 | 40 40 | 2005-07-16 03:25:04.000 | 2 2 | 2020-12-23 07:16:31 |
| 5777 | 2005-07-10 13:38:41.000 | 3959 3959 | 40 40 | 2005-07-17 15:48:41.000 | 2 2 | 2020-12-23 07:16:42 |
| 5869 | 2005-07-10 18:40:09.000 | 2157 2157 | 40 40 | 2005-07-17 18:42:09.000 | 1 1 | 2020-12-23 07:16:43 |
| 6502 | 2005-07-12 03:15:45.000 | 1641 1641 | 40 40 | 2005-07-17 08:47:45.000 | 2 2 | 2020-12-23 07:16:52 |
| 7684 | 2005-07-28 03:11:54.000 | 3365 3365 | 40 40 | 2005-07-31 04:40:54.000 | 2 2 | 2020-12-23 07:17:10 |
| 8031 | 2005-07-28 16:15:49.000 | 2196 2196 | 40 40 | 2005-08-02 18:27:49.000 | 2 2 | 2020-12-23 07:17:15 |
| 8170 | 2005-07-28 21:32:29.000 | 2495 2495 | 40 40 | 2005-08-03 22:02:29.000 | 1 1 | 2020-12-23 07:17:17 |
| 9050 | 2005-07-30 06:59:55.000 | 106 106 | 40 40 | 2005-08-06 06:37:55.000 | 1 1 | 2020-12-23 07:17:30 |
| 9700 | 2005-07-31 07:29:59.000 | 2678 2678 | 40 40 | 2005-08-02 09:53:59.000 | 1 1 | 2020-12-23 07:17:39 |
| 9961 | 2005-07-31 16:07:50.000 | 1856 1856 | 40 40 | 2005-08-07 18:37:50.000 | 2 2 | 2020-12-23 07:17:43 |
| 9975 | 2005-07-31 16:53:43.000 | 2564 2564 | 40 40 | 2005-08-07 20:13:43.000 | 2 2 | 2020-12-23 07:17:43 |
| 10442 | 2005-08-01 08:58:08.000 | 4570 4570 | 40 40 | 2005-08-05 09:07:08.000 | 2 2 | 2020-12-23 07:17:50 |
| 11919 | 2005-08-17 16:08:49.000 | 4497 4497 | 40 40 | 2005-08-20 16:59:49.000 | 2 2 | 2020-12-23 07:18:10 |
| 11948 | 2005-08-17 17:11:05.000 | 3329 3329 | 40 40 | 2005-08-25 21:16:05.000 | 2 2 | 2020-12-23 07:18:11 |
| 12396 | 2005-08-18 09:11:23.000 | 3624 3624 | 40 40 | 2005-08-26 05:35:23.000 | 2 2 | 2020-12-23 07:18:17 |
| 12877 | 2005-08-19 03:16:58.000 | 1016 1016 | 40 40 | 2005-08-25 02:10:58.000 | 2 2 | 2020-12-23 07:18:23 |
| 13149 | 2005-08-19 13:07:12.000 | 1436 1436 | 40 40 | 2005-08-28 18:12:12.000 | 1 1 | 2020-12-23 07:18:27 |
| 13376 | 2005-08-19 21:31:45.000 | 898 898 | 40 40 | 2005-08-22 01:14:45.000 | 2 2 | 2020-12-23 07:18:31 |
| 13840 | 2005-08-20 14:23:20.000 | 1211 1211 | 40 40 | 2005-08-28 11:53:20.000 | 1 1 | 2020-12-23 07:18:38 |
| 13951 | 2005-08-20 17:58:11.000 | 2034 2034 | 40 40 | 2005-08-26 14:50:11.000 | 2 2 | 2020-12-23 07:18:40 |
| 14260 | 2005-08-21 06:01:08.000 | 2961 2961 | 40 40 | 2005-08-29 09:01:08.000 | 2 2 | 2020-12-23 07:18:45 |
| 15193 | 2005-08-22 16:06:49.000 | 1033 1033 | 40 40 | 2005-08-25 17:23:49.000 | 1 1 | 2020-12-23 07:18:58 |
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) ;