rental
27 rows where customer_id = 160
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 |
|---|---|---|---|---|---|---|
| 2314 | 2005-06-18 09:03:19.000 | 2157 2157 | 160 160 | 2005-06-19 12:14:19.000 | 1 1 | 2020-12-23 07:15:51 |
| 2465 | 2005-06-18 20:07:02.000 | 3783 3783 | 160 160 | 2005-06-25 20:55:02.000 | 1 1 | 2020-12-23 07:15:53 |
| 2873 | 2005-06-20 00:41:25.000 | 3321 3321 | 160 160 | 2005-06-25 02:06:25.000 | 1 1 | 2020-12-23 07:15:59 |
| 4842 | 2005-07-08 18:21:30.000 | 1438 1438 | 160 160 | 2005-07-10 22:25:30.000 | 2 2 | 2020-12-23 07:16:28 |
| 4908 | 2005-07-08 21:05:44.000 | 1963 1963 | 160 160 | 2005-07-17 21:33:44.000 | 2 2 | 2020-12-23 07:16:29 |
| 6364 | 2005-07-11 21:14:48.000 | 4146 4146 | 160 160 | 2005-07-20 23:20:48.000 | 2 2 | 2020-12-23 07:16:50 |
| 6448 | 2005-07-12 00:45:59.000 | 2663 2663 | 160 160 | 2005-07-17 00:34:59.000 | 1 1 | 2020-12-23 07:16:51 |
| 7500 | 2005-07-27 20:16:03.000 | 609 609 | 160 160 | 2005-07-29 18:50:03.000 | 1 1 | 2020-12-23 07:17:07 |
| 8184 | 2005-07-28 22:22:35.000 | 1249 1249 | 160 160 | 2005-07-31 19:30:35.000 | 1 1 | 2020-12-23 07:17:17 |
| 9681 | 2005-07-31 06:42:09.000 | 64 64 | 160 160 | 2005-08-06 08:21:09.000 | 1 1 | 2020-12-23 07:17:39 |
| 9758 | 2005-07-31 09:25:38.000 | 1307 1307 | 160 160 | 2005-08-03 14:16:38.000 | 1 1 | 2020-12-23 07:17:40 |
| 10089 | 2005-07-31 20:17:09.000 | 248 248 | 160 160 | 2005-08-01 19:14:09.000 | 2 2 | 2020-12-23 07:17:45 |
| 10305 | 2005-08-01 04:16:16.000 | 2946 2946 | 160 160 | 2005-08-07 23:47:16.000 | 1 1 | 2020-12-23 07:17:48 |
| 10788 | 2005-08-01 21:37:10.000 | 3350 3350 | 160 160 | 2005-08-03 01:33:10.000 | 1 1 | 2020-12-23 07:17:55 |
| 10958 | 2005-08-02 03:37:13.000 | 2174 2174 | 160 160 | 2005-08-04 23:28:13.000 | 2 2 | 2020-12-23 07:17:57 |
| 10979 | 2005-08-02 04:16:37.000 | 2625 2625 | 160 160 | 2005-08-06 00:01:37.000 | 2 2 | 2020-12-23 07:17:57 |
| 11154 | 2005-08-02 09:54:50.000 | 697 697 | 160 160 | 2005-08-06 14:48:50.000 | 2 2 | 2020-12-23 07:18:00 |
| 11803 | 2005-08-17 11:42:08.000 | 3648 3648 | 160 160 | 2005-08-22 07:45:08.000 | 2 2 | 2020-12-23 07:18:09 |
| 11888 | 2005-08-17 15:04:05.000 | 1100 1100 | 160 160 | 2005-08-25 18:52:05.000 | 2 2 | 2020-12-23 07:18:10 |
| 12334 | 2005-08-18 06:52:36.000 | 2629 2629 | 160 160 | 2005-08-25 12:06:36.000 | 1 1 | 2020-12-23 07:18:16 |
| 12435 | 2005-08-18 10:38:31.000 | 3211 3211 | 160 160 | 2005-08-26 15:18:31.000 | 1 1 | 2020-12-23 07:18:17 |
| 13093 | 2005-08-19 10:46:16.000 | 1667 1667 | 160 160 | 2005-08-26 08:05:16.000 | 1 1 | 2020-12-23 07:18:27 |
| 14868 | 2005-08-22 03:15:01.000 | 4383 4383 | 160 160 | 2005-08-25 01:24:01.000 | 1 1 | 2020-12-23 07:18:53 |
| 15112 | 2005-08-22 12:21:49.000 | 2832 2832 | 160 160 | 2005-08-27 11:03:49.000 | 1 1 | 2020-12-23 07:18:56 |
| 15642 | 2005-08-23 08:09:11.000 | 2627 2627 | 160 160 | 2005-08-28 05:57:11.000 | 1 1 | 2020-12-23 07:19:04 |
| 15962 | 2005-08-23 19:42:04.000 | 3491 3491 | 160 160 | 2005-08-25 23:53:04.000 | 1 1 | 2020-12-23 07:19:09 |
| 16027 | 2005-08-23 21:49:33.000 | 1724 1724 | 160 160 | 2005-08-30 16:19:33.000 | 2 2 | 2020-12-23 07:19:10 |
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) ;