rental
26 rows where customer_id = 357
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 |
|---|---|---|---|---|---|---|
| 144 | 2005-05-25 23:49:56.000 | 1689 1689 | 357 357 | 2005-06-01 21:41:56.000 | 2 2 | 2020-12-23 07:15:22 |
| 824 | 2005-05-29 21:45:32.000 | 3518 3518 | 357 357 | 2005-05-31 19:01:32.000 | 1 1 | 2020-12-23 07:15:31 |
| 945 | 2005-05-30 15:33:17.000 | 1441 1441 | 357 357 | 2005-06-02 15:02:17.000 | 2 2 | 2020-12-23 07:15:32 |
| 1246 | 2005-06-15 05:11:19.000 | 431 431 | 357 357 | 2005-06-21 02:21:19.000 | 1 1 | 2020-12-23 07:15:36 |
| 1788 | 2005-06-16 19:47:18.000 | 3794 3794 | 357 357 | 2005-06-22 23:10:18.000 | 1 1 | 2020-12-23 07:15:44 |
| 1971 | 2005-06-17 09:23:59.000 | 2870 2870 | 357 357 | 2005-06-25 13:20:59.000 | 2 2 | 2020-12-23 07:15:46 |
| 2153 | 2005-06-17 22:58:04.000 | 2440 2440 | 357 357 | 2005-06-24 19:38:04.000 | 2 2 | 2020-12-23 07:15:49 |
| 3865 | 2005-07-06 17:46:57.000 | 3579 3579 | 357 357 | 2005-07-12 12:20:57.000 | 1 1 | 2020-12-23 07:16:13 |
| 4478 | 2005-07-08 00:39:08.000 | 1764 1764 | 357 357 | 2005-07-11 21:57:08.000 | 2 2 | 2020-12-23 07:16:23 |
| 5896 | 2005-07-10 20:15:56.000 | 731 731 | 357 357 | 2005-07-12 00:39:56.000 | 1 1 | 2020-12-23 07:16:44 |
| 6288 | 2005-07-11 17:01:52.000 | 3235 3235 | 357 357 | 2005-07-19 15:11:52.000 | 1 1 | 2020-12-23 07:16:49 |
| 6367 | 2005-07-11 21:18:29.000 | 1465 1465 | 357 357 | 2005-07-15 01:05:29.000 | 1 1 | 2020-12-23 07:16:50 |
| 6405 | 2005-07-11 22:53:12.000 | 3983 3983 | 357 357 | 2005-07-18 23:02:12.000 | 2 2 | 2020-12-23 07:16:51 |
| 6839 | 2005-07-12 19:03:19.000 | 3900 3900 | 357 357 | 2005-07-15 23:48:19.000 | 1 1 | 2020-12-23 07:16:57 |
| 7353 | 2005-07-27 14:38:39.000 | 1308 1308 | 357 357 | 2005-07-31 19:50:39.000 | 1 1 | 2020-12-23 07:17:05 |
| 7366 | 2005-07-27 15:01:17.000 | 461 461 | 357 357 | 2005-08-04 20:28:17.000 | 1 1 | 2020-12-23 07:17:05 |
| 8041 | 2005-07-28 16:39:56.000 | 763 763 | 357 357 | 2005-07-30 18:44:56.000 | 1 1 | 2020-12-23 07:17:15 |
| 8124 | 2005-07-28 19:28:58.000 | 1187 1187 | 357 357 | 2005-07-31 00:45:58.000 | 1 1 | 2020-12-23 07:17:16 |
| 9233 | 2005-07-30 13:44:15.000 | 2320 2320 | 357 357 | 2005-08-07 13:02:15.000 | 2 2 | 2020-12-23 07:17:33 |
| 10391 | 2005-08-01 06:49:05.000 | 2203 2203 | 357 357 | 2005-08-04 01:51:05.000 | 2 2 | 2020-12-23 07:17:49 |
| 10502 | 2005-08-01 11:06:39.000 | 3193 3193 | 357 357 | 2005-08-05 07:11:39.000 | 1 1 | 2020-12-23 07:17:51 |
| 10503 | 2005-08-01 11:07:44.000 | 1823 1823 | 357 357 | 2005-08-08 08:22:44.000 | 1 1 | 2020-12-23 07:17:51 |
| 10764 | 2005-08-01 20:32:42.000 | 3808 3808 | 357 357 | 2005-08-03 22:14:42.000 | 2 2 | 2020-12-23 07:17:55 |
| 11065 | 2005-08-02 06:57:55.000 | 2226 2226 | 357 357 | 2005-08-06 01:31:55.000 | 2 2 | 2020-12-23 07:17:58 |
| 14926 | 2005-08-22 05:18:44.000 | 2448 2448 | 357 357 | 2005-08-26 02:18:44.000 | 1 1 | 2020-12-23 07:18:54 |
| 15869 | 2005-08-23 16:22:20.000 | 1344 1344 | 357 357 | 2005-08-27 11:52:20.000 | 1 1 | 2020-12-23 07:19:07 |
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) ;