rental
25 rows where customer_id = 229
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 |
|---|---|---|---|---|---|---|
| 2200 | 2005-06-18 01:59:16.000 | 1085 1085 | 229 229 | 2005-06-26 23:25:16.000 | 2 2 | 2020-12-23 07:15:50 |
| 3208 | 2005-06-21 00:50:03.000 | 3169 3169 | 229 229 | 2005-06-24 06:15:03.000 | 2 2 | 2020-12-23 07:16:03 |
| 3277 | 2005-06-21 05:36:37.000 | 1330 1330 | 229 229 | 2005-06-29 10:54:37.000 | 1 1 | 2020-12-23 07:16:05 |
| 3280 | 2005-06-21 06:08:12.000 | 661 661 | 229 229 | 2005-06-24 09:34:12.000 | 1 1 | 2020-12-23 07:16:05 |
| 3933 | 2005-07-06 21:06:37.000 | 1202 1202 | 229 229 | 2005-07-08 20:23:37.000 | 1 1 | 2020-12-23 07:16:14 |
| 4458 | 2005-07-07 23:47:47.000 | 1307 1307 | 229 229 | 2005-07-09 19:17:47.000 | 2 2 | 2020-12-23 07:16:22 |
| 4515 | 2005-07-08 02:42:03.000 | 1998 1998 | 229 229 | 2005-07-10 07:22:03.000 | 2 2 | 2020-12-23 07:16:23 |
| 4694 | 2005-07-08 11:07:37.000 | 3637 3637 | 229 229 | 2005-07-12 06:53:37.000 | 2 2 | 2020-12-23 07:16:26 |
| 5623 | 2005-07-10 05:41:38.000 | 4464 4464 | 229 229 | 2005-07-14 01:01:38.000 | 2 2 | 2020-12-23 07:16:40 |
| 6155 | 2005-07-11 09:45:31.000 | 785 785 | 229 229 | 2005-07-18 08:09:31.000 | 1 1 | 2020-12-23 07:16:47 |
| 6578 | 2005-07-12 06:15:41.000 | 2304 2304 | 229 229 | 2005-07-15 10:43:41.000 | 1 1 | 2020-12-23 07:16:53 |
| 6880 | 2005-07-12 20:41:35.000 | 1473 1473 | 229 229 | 2005-07-17 02:22:35.000 | 1 1 | 2020-12-23 07:16:58 |
| 7305 | 2005-07-27 12:57:06.000 | 2464 2464 | 229 229 | 2005-07-30 13:13:06.000 | 2 2 | 2020-12-23 07:17:04 |
| 7308 | 2005-07-27 13:00:25.000 | 1452 1452 | 229 229 | 2005-08-03 16:04:25.000 | 1 1 | 2020-12-23 07:17:04 |
| 7629 | 2005-07-28 01:00:09.000 | 2453 2453 | 229 229 | 2005-07-30 06:49:09.000 | 1 1 | 2020-12-23 07:17:09 |
| 7640 | 2005-07-28 01:14:49.000 | 3014 3014 | 229 229 | 2005-08-03 21:50:49.000 | 1 1 | 2020-12-23 07:17:09 |
| 9913 | 2005-07-31 14:51:04.000 | 3744 3744 | 229 229 | 2005-08-06 12:12:04.000 | 1 1 | 2020-12-23 07:17:43 |
| 11521 | 2005-08-17 00:04:54.000 | 463 463 | 229 229 | 2005-08-21 00:57:54.000 | 1 1 | 2020-12-23 07:18:05 |
| 12866 | 2005-08-19 02:39:47.000 | 1766 1766 | 229 229 | 2005-08-27 02:14:47.000 | 1 1 | 2020-12-23 07:18:23 |
| 13295 | 2006-02-14 15:16:03.000 | 2408 2408 | 229 229 | 1 1 | 2020-12-23 07:18:30 | |
| 13306 | 2005-08-19 18:57:29.000 | 2742 2742 | 229 229 | 2005-08-20 20:09:29.000 | 2 2 | 2020-12-23 07:18:30 |
| 13431 | 2005-08-19 23:28:15.000 | 1700 1700 | 229 229 | 2005-08-25 04:44:15.000 | 1 1 | 2020-12-23 07:18:32 |
| 13679 | 2005-08-20 08:39:34.000 | 2878 2878 | 229 229 | 2005-08-29 10:06:34.000 | 2 2 | 2020-12-23 07:18:36 |
| 15740 | 2005-08-23 12:07:51.000 | 100 100 | 229 229 | 2005-08-24 13:23:51.000 | 2 2 | 2020-12-23 07:19:05 |
| 15912 | 2005-08-23 17:47:40.000 | 3079 3079 | 229 229 | 2005-08-31 14:43:40.000 | 2 2 | 2020-12-23 07:19:08 |
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) ;