rental
27 rows where customer_id = 282
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 |
|---|---|---|---|---|---|---|
| 48 | 2005-05-25 06:20:46.000 | 1780 1780 | 282 282 | 2005-06-02 05:42:46.000 | 1 1 | 2020-12-23 07:15:20 |
| 282 | 2005-05-26 18:56:26.000 | 4486 4486 | 282 282 | 2005-06-01 16:32:26.000 | 2 2 | 2020-12-23 07:15:23 |
| 564 | 2005-05-28 09:12:09.000 | 2973 2973 | 282 282 | 2005-05-29 05:07:09.000 | 1 1 | 2020-12-23 07:15:27 |
| 2016 | 2005-06-17 12:18:36.000 | 4265 4265 | 282 282 | 2005-06-20 12:13:36.000 | 1 1 | 2020-12-23 07:15:47 |
| 2176 | 2005-06-18 00:29:51.000 | 4201 4201 | 282 282 | 2005-06-21 01:41:51.000 | 1 1 | 2020-12-23 07:15:49 |
| 3408 | 2005-06-21 16:15:11.000 | 3453 3453 | 282 282 | 2005-06-27 14:55:11.000 | 1 1 | 2020-12-23 07:16:07 |
| 3417 | 2005-06-21 17:06:20.000 | 874 874 | 282 282 | 2005-06-23 17:00:20.000 | 2 2 | 2020-12-23 07:16:07 |
| 3675 | 2005-07-06 09:09:19.000 | 3662 3662 | 282 282 | 2005-07-12 08:51:19.000 | 1 1 | 2020-12-23 07:16:11 |
| 3885 | 2005-07-06 18:43:43.000 | 1820 1820 | 282 282 | 2005-07-12 19:48:43.000 | 2 2 | 2020-12-23 07:16:14 |
| 4359 | 2005-07-07 19:30:20.000 | 3222 3222 | 282 282 | 2005-07-09 13:34:20.000 | 1 1 | 2020-12-23 07:16:21 |
| 4412 | 2005-07-07 21:56:53.000 | 1181 1181 | 282 282 | 2005-07-11 19:28:53.000 | 1 1 | 2020-12-23 07:16:22 |
| 5113 | 2005-07-09 07:06:18.000 | 3618 3618 | 282 282 | 2005-07-13 07:10:18.000 | 2 2 | 2020-12-23 07:16:32 |
| 5319 | 2005-07-09 16:17:44.000 | 1899 1899 | 282 282 | 2005-07-18 16:35:44.000 | 1 1 | 2020-12-23 07:16:35 |
| 5926 | 2005-07-10 21:53:42.000 | 2840 2840 | 282 282 | 2005-07-20 01:04:42.000 | 1 1 | 2020-12-23 07:16:44 |
| 7433 | 2005-07-27 17:32:20.000 | 1748 1748 | 282 282 | 2005-08-01 18:49:20.000 | 1 1 | 2020-12-23 07:17:06 |
| 7534 | 2005-07-27 21:26:17.000 | 2276 2276 | 282 282 | 2005-08-05 00:23:17.000 | 2 2 | 2020-12-23 07:17:08 |
| 8223 | 2005-07-28 23:56:01.000 | 4508 4508 | 282 282 | 2005-08-03 22:27:01.000 | 1 1 | 2020-12-23 07:17:18 |
| 8270 | 2005-07-29 01:27:22.000 | 3565 3565 | 282 282 | 2005-07-29 20:55:22.000 | 1 1 | 2020-12-23 07:17:18 |
| 8468 | 2005-07-29 08:26:04.000 | 1338 1338 | 282 282 | 2005-08-02 07:18:04.000 | 1 1 | 2020-12-23 07:17:21 |
| 8743 | 2005-07-29 18:57:01.000 | 2664 2664 | 282 282 | 2005-07-31 22:09:01.000 | 2 2 | 2020-12-23 07:17:26 |
| 8973 | 2005-07-30 04:09:13.000 | 886 886 | 282 282 | 2005-08-07 22:30:13.000 | 2 2 | 2020-12-23 07:17:29 |
| 9658 | 2005-07-31 06:00:52.000 | 2332 2332 | 282 282 | 2005-08-09 04:47:52.000 | 2 2 | 2020-12-23 07:17:39 |
| 11226 | 2005-08-02 12:47:30.000 | 79 79 | 282 282 | 2005-08-06 11:24:30.000 | 1 1 | 2020-12-23 07:18:01 |
| 13278 | 2005-08-19 17:57:53.000 | 2691 2691 | 282 282 | 2005-08-22 23:16:53.000 | 1 1 | 2020-12-23 07:18:29 |
| 13749 | 2005-08-20 11:00:37.000 | 2811 2811 | 282 282 | 2005-08-26 12:04:37.000 | 1 1 | 2020-12-23 07:18:37 |
| 15430 | 2006-02-14 15:16:03.000 | 4353 4353 | 282 282 | 1 1 | 2020-12-23 07:19:01 | |
| 15543 | 2005-08-23 04:15:41.000 | 3836 3836 | 282 282 | 2005-09-01 05:09:41.000 | 2 2 | 2020-12-23 07:19:03 |
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) ;