rental
28 rows where customer_id = 332
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 |
|---|---|---|---|---|---|---|
| 600 | 2005-05-28 14:08:19.000 | 1567 1567 | 332 332 | 2005-06-03 11:57:19.000 | 2 2 | 2020-12-23 07:15:27 |
| 1000 | 2005-05-31 00:25:56.000 | 1774 1774 | 332 332 | 2005-06-08 19:42:56.000 | 2 2 | 2020-12-23 07:15:33 |
| 4100 | 2005-07-07 06:20:52.000 | 2346 2346 | 332 332 | 2005-07-15 05:58:52.000 | 2 2 | 2020-12-23 07:16:17 |
| 4302 | 2005-07-07 16:47:53.000 | 3669 3669 | 332 332 | 2005-07-16 22:22:53.000 | 2 2 | 2020-12-23 07:16:20 |
| 5116 | 2005-07-09 07:10:12.000 | 2491 2491 | 332 332 | 2005-07-14 09:16:12.000 | 2 2 | 2020-12-23 07:16:32 |
| 5277 | 2005-07-09 14:40:42.000 | 2026 2026 | 332 332 | 2005-07-16 14:18:42.000 | 2 2 | 2020-12-23 07:16:34 |
| 5381 | 2005-07-09 19:11:11.000 | 3033 3033 | 332 332 | 2005-07-13 17:10:11.000 | 2 2 | 2020-12-23 07:16:36 |
| 5388 | 2005-07-09 19:25:25.000 | 1546 1546 | 332 332 | 2005-07-14 19:51:25.000 | 2 2 | 2020-12-23 07:16:36 |
| 5440 | 2005-07-09 21:45:17.000 | 138 138 | 332 332 | 2005-07-11 22:43:17.000 | 2 2 | 2020-12-23 07:16:37 |
| 7049 | 2005-07-27 03:32:41.000 | 3043 3043 | 332 332 | 2005-08-04 08:32:41.000 | 2 2 | 2020-12-23 07:17:00 |
| 7418 | 2005-07-27 16:59:09.000 | 3029 3029 | 332 332 | 2005-07-29 15:08:09.000 | 2 2 | 2020-12-23 07:17:06 |
| 7577 | 2005-07-27 22:56:07.000 | 2723 2723 | 332 332 | 2005-08-05 21:23:07.000 | 2 2 | 2020-12-23 07:17:08 |
| 7578 | 2005-07-27 22:58:17.000 | 4210 4210 | 332 332 | 2005-07-29 23:14:17.000 | 1 1 | 2020-12-23 07:17:08 |
| 7934 | 2005-07-28 12:33:10.000 | 2642 2642 | 332 332 | 2005-08-04 07:40:10.000 | 2 2 | 2020-12-23 07:17:13 |
| 8173 | 2005-07-28 21:35:44.000 | 4377 4377 | 332 332 | 2005-08-06 19:15:44.000 | 2 2 | 2020-12-23 07:17:17 |
| 9324 | 2005-07-30 17:28:52.000 | 1231 1231 | 332 332 | 2005-08-06 19:02:52.000 | 1 1 | 2020-12-23 07:17:34 |
| 9388 | 2005-07-30 19:27:22.000 | 2116 2116 | 332 332 | 2005-08-08 15:31:22.000 | 2 2 | 2020-12-23 07:17:35 |
| 9921 | 2005-07-31 14:59:21.000 | 1004 1004 | 332 332 | 2005-08-01 12:40:21.000 | 2 2 | 2020-12-23 07:17:43 |
| 10026 | 2005-07-31 18:31:51.000 | 39 39 | 332 332 | 2005-08-03 21:14:51.000 | 2 2 | 2020-12-23 07:17:44 |
| 10307 | 2005-08-01 04:21:54.000 | 975 975 | 332 332 | 2005-08-04 09:24:54.000 | 2 2 | 2020-12-23 07:17:48 |
| 10439 | 2005-08-01 08:54:26.000 | 2711 2711 | 332 332 | 2005-08-08 14:04:26.000 | 1 1 | 2020-12-23 07:17:50 |
| 11229 | 2005-08-02 12:56:37.000 | 941 941 | 332 332 | 2005-08-11 11:13:37.000 | 2 2 | 2020-12-23 07:18:01 |
| 11564 | 2005-08-17 01:27:49.000 | 2237 2237 | 332 332 | 2005-08-19 22:07:49.000 | 1 1 | 2020-12-23 07:18:06 |
| 12318 | 2005-08-18 06:21:56.000 | 3694 3694 | 332 332 | 2005-08-27 06:07:56.000 | 1 1 | 2020-12-23 07:18:16 |
| 13673 | 2005-08-20 08:27:30.000 | 343 343 | 332 332 | 2005-08-26 05:14:30.000 | 1 1 | 2020-12-23 07:18:35 |
| 14783 | 2005-08-22 00:21:57.000 | 3419 3419 | 332 332 | 2005-08-28 01:27:57.000 | 2 2 | 2020-12-23 07:18:52 |
| 15194 | 2005-08-22 16:07:34.000 | 1217 1217 | 332 332 | 2005-08-26 19:16:34.000 | 1 1 | 2020-12-23 07:18:58 |
| 15210 | 2005-08-22 16:37:36.000 | 3811 3811 | 332 332 | 2005-08-29 11:54:36.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) ;