rental
26 rows where customer_id = 422
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 |
|---|---|---|---|---|---|---|
| 398 | 2005-05-27 12:44:03.000 | 1686 1686 | 422 422 | 2005-06-02 08:19:03.000 | 1 1 | 2020-12-23 07:15:25 |
| 1846 | 2005-06-17 00:02:44.000 | 1725 1725 | 422 422 | 2005-06-18 23:47:44.000 | 2 2 | 2020-12-23 07:15:44 |
| 1897 | 2005-06-17 04:26:23.000 | 4142 4142 | 422 422 | 2005-06-25 09:32:23.000 | 2 2 | 2020-12-23 07:15:45 |
| 2747 | 2005-06-19 16:22:07.000 | 1374 1374 | 422 422 | 2005-06-24 19:28:07.000 | 1 1 | 2020-12-23 07:15:57 |
| 2778 | 2005-06-19 18:18:12.000 | 3357 3357 | 422 422 | 2005-06-28 21:43:12.000 | 1 1 | 2020-12-23 07:15:58 |
| 3553 | 2005-07-06 02:35:41.000 | 4510 4510 | 422 422 | 2005-07-08 06:38:41.000 | 2 2 | 2020-12-23 07:16:09 |
| 4463 | 2005-07-08 00:04:59.000 | 4356 4356 | 422 422 | 2005-07-16 01:19:59.000 | 1 1 | 2020-12-23 07:16:23 |
| 4504 | 2005-07-08 02:19:27.000 | 361 361 | 422 422 | 2005-07-12 21:15:27.000 | 1 1 | 2020-12-23 07:16:23 |
| 5784 | 2005-07-10 14:03:28.000 | 2323 2323 | 422 422 | 2005-07-16 16:22:28.000 | 1 1 | 2020-12-23 07:16:42 |
| 7827 | 2005-07-28 08:37:22.000 | 659 659 | 422 422 | 2005-07-31 04:27:22.000 | 1 1 | 2020-12-23 07:17:12 |
| 8206 | 2005-07-28 23:20:31.000 | 2979 2979 | 422 422 | 2005-08-04 21:36:31.000 | 1 1 | 2020-12-23 07:17:17 |
| 9541 | 2005-07-31 01:40:14.000 | 1774 1774 | 422 422 | 2005-08-05 06:34:14.000 | 2 2 | 2020-12-23 07:17:37 |
| 10833 | 2005-08-01 23:25:55.000 | 4380 4380 | 422 422 | 2005-08-10 18:01:55.000 | 1 1 | 2020-12-23 07:17:55 |
| 11325 | 2005-08-02 16:33:11.000 | 4514 4514 | 422 422 | 2005-08-08 13:42:11.000 | 1 1 | 2020-12-23 07:18:02 |
| 11658 | 2005-08-17 05:19:17.000 | 2008 2008 | 422 422 | 2005-08-24 07:03:17.000 | 2 2 | 2020-12-23 07:18:07 |
| 11842 | 2005-08-17 13:13:37.000 | 2680 2680 | 422 422 | 2005-08-20 08:32:37.000 | 1 1 | 2020-12-23 07:18:09 |
| 12907 | 2005-08-19 04:16:13.000 | 2844 2844 | 422 422 | 2005-08-27 02:43:13.000 | 1 1 | 2020-12-23 07:18:24 |
| 13216 | 2005-08-19 15:36:05.000 | 4335 4335 | 422 422 | 2005-08-25 19:03:05.000 | 2 2 | 2020-12-23 07:18:28 |
| 13625 | 2005-08-20 06:52:03.000 | 60 60 | 422 422 | 2005-08-27 07:43:03.000 | 1 1 | 2020-12-23 07:18:35 |
| 13709 | 2005-08-20 09:34:51.000 | 4089 4089 | 422 422 | 2005-08-23 04:13:51.000 | 1 1 | 2020-12-23 07:18:36 |
| 13722 | 2005-08-20 10:03:45.000 | 1581 1581 | 422 422 | 2005-08-25 04:26:45.000 | 1 1 | 2020-12-23 07:18:36 |
| 14861 | 2005-08-22 02:48:05.000 | 1806 1806 | 422 422 | 2005-08-27 00:50:05.000 | 1 1 | 2020-12-23 07:18:53 |
| 15272 | 2005-08-22 18:49:40.000 | 1664 1664 | 422 422 | 2005-08-28 21:22:40.000 | 1 1 | 2020-12-23 07:18:59 |
| 15273 | 2005-08-22 18:53:28.000 | 2558 2558 | 422 422 | 2005-08-30 18:58:28.000 | 2 2 | 2020-12-23 07:18:59 |
| 15316 | 2005-08-22 20:07:03.000 | 1830 1830 | 422 422 | 2005-08-27 18:45:03.000 | 1 1 | 2020-12-23 07:18:59 |
| 15441 | 2006-02-14 15:16:03.000 | 258 258 | 422 422 | 2 2 | 2020-12-23 07:19:01 |
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) ;