rental
24 rows where customer_id = 511
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 |
|---|---|---|---|---|---|---|
| 56 | 2005-05-25 08:28:11.000 | 1352 1352 | 511 511 | 2005-05-26 14:21:11.000 | 1 1 | 2020-12-23 07:15:20 |
| 819 | 2005-05-29 21:00:32.000 | 623 623 | 511 511 | 2005-06-02 15:15:32.000 | 2 2 | 2020-12-23 07:15:31 |
| 1281 | 2005-06-15 08:21:39.000 | 2963 2963 | 511 511 | 2005-06-17 11:03:39.000 | 1 1 | 2020-12-23 07:15:37 |
| 1508 | 2005-06-15 22:33:24.000 | 1141 1141 | 511 511 | 2005-06-18 02:27:24.000 | 2 2 | 2020-12-23 07:15:40 |
| 2966 | 2005-06-20 07:39:33.000 | 3483 3483 | 511 511 | 2005-06-29 07:48:33.000 | 1 1 | 2020-12-23 07:16:00 |
| 3366 | 2005-06-21 13:03:37.000 | 2584 2584 | 511 511 | 2005-06-26 16:29:37.000 | 1 1 | 2020-12-23 07:16:06 |
| 3600 | 2005-07-06 05:19:42.000 | 2748 2748 | 511 511 | 2005-07-11 00:34:42.000 | 2 2 | 2020-12-23 07:16:09 |
| 3852 | 2005-07-06 16:57:49.000 | 3329 3329 | 511 511 | 2005-07-11 17:11:49.000 | 1 1 | 2020-12-23 07:16:13 |
| 4482 | 2005-07-08 01:01:18.000 | 3500 3500 | 511 511 | 2005-07-11 01:18:18.000 | 1 1 | 2020-12-23 07:16:23 |
| 5164 | 2005-07-09 09:03:14.000 | 1170 1170 | 511 511 | 2005-07-14 04:20:14.000 | 1 1 | 2020-12-23 07:16:33 |
| 5601 | 2005-07-10 04:56:55.000 | 3062 3062 | 511 511 | 2005-07-11 00:14:55.000 | 1 1 | 2020-12-23 07:16:39 |
| 6040 | 2005-07-11 03:14:26.000 | 2161 2161 | 511 511 | 2005-07-14 01:12:26.000 | 2 2 | 2020-12-23 07:16:46 |
| 6320 | 2005-07-11 18:50:55.000 | 441 441 | 511 511 | 2005-07-13 22:46:55.000 | 2 2 | 2020-12-23 07:16:49 |
| 8026 | 2005-07-28 16:05:38.000 | 4225 4225 | 511 511 | 2005-07-29 21:28:38.000 | 2 2 | 2020-12-23 07:17:15 |
| 9095 | 2005-07-30 08:38:36.000 | 3019 3019 | 511 511 | 2005-07-31 06:14:36.000 | 1 1 | 2020-12-23 07:17:31 |
| 9143 | 2005-07-30 10:22:11.000 | 2962 2962 | 511 511 | 2005-08-07 06:13:11.000 | 2 2 | 2020-12-23 07:17:31 |
| 9760 | 2005-07-31 09:29:33.000 | 426 426 | 511 511 | 2005-08-09 07:32:33.000 | 2 2 | 2020-12-23 07:17:40 |
| 10231 | 2005-08-01 01:50:49.000 | 1056 1056 | 511 511 | 2005-08-06 03:12:49.000 | 1 1 | 2020-12-23 07:17:47 |
| 10429 | 2005-08-01 08:34:18.000 | 3894 3894 | 511 511 | 2005-08-10 12:38:18.000 | 1 1 | 2020-12-23 07:17:50 |
| 12110 | 2005-08-17 22:59:46.000 | 2984 2984 | 511 511 | 2005-08-23 17:51:46.000 | 1 1 | 2020-12-23 07:18:13 |
| 12920 | 2005-08-19 04:32:32.000 | 2516 2516 | 511 511 | 2005-08-27 00:44:32.000 | 2 2 | 2020-12-23 07:18:24 |
| 14213 | 2005-08-21 04:30:47.000 | 382 382 | 511 511 | 2005-08-24 23:01:47.000 | 1 1 | 2020-12-23 07:18:44 |
| 14302 | 2005-08-21 07:19:57.000 | 1287 1287 | 511 511 | 2005-08-28 02:59:57.000 | 1 1 | 2020-12-23 07:18:45 |
| 15172 | 2005-08-22 15:25:33.000 | 2367 2367 | 511 511 | 2005-08-23 17:29:33.000 | 1 1 | 2020-12-23 07:18:57 |
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) ;