rental
27 rows where customer_id = 396
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 |
|---|---|---|---|---|---|---|
| 641 | 2005-05-28 18:45:47.000 | 3548 3548 | 396 396 | 2005-06-04 15:24:47.000 | 1 1 | 2020-12-23 07:15:28 |
| 1370 | 2005-06-15 14:31:05.000 | 644 644 | 396 396 | 2005-06-22 19:23:05.000 | 2 2 | 2020-12-23 07:15:38 |
| 1385 | 2005-06-15 15:28:23.000 | 4073 4073 | 396 396 | 2005-06-18 18:37:23.000 | 1 1 | 2020-12-23 07:15:38 |
| 1408 | 2005-06-15 16:57:58.000 | 2655 2655 | 396 396 | 2005-06-22 21:08:58.000 | 1 1 | 2020-12-23 07:15:38 |
| 3909 | 2005-07-06 19:54:41.000 | 3423 3423 | 396 396 | 2005-07-15 18:11:41.000 | 2 2 | 2020-12-23 07:16:14 |
| 5059 | 2005-07-09 04:28:01.000 | 3951 3951 | 396 396 | 2005-07-15 22:57:01.000 | 1 1 | 2020-12-23 07:16:31 |
| 6335 | 2005-07-11 19:25:15.000 | 2757 2757 | 396 396 | 2005-07-16 17:02:15.000 | 1 1 | 2020-12-23 07:16:50 |
| 6764 | 2005-07-12 15:29:27.000 | 4407 4407 | 396 396 | 2005-07-21 20:00:27.000 | 2 2 | 2020-12-23 07:16:56 |
| 6771 | 2005-07-12 15:54:40.000 | 1113 1113 | 396 396 | 2005-07-17 15:56:40.000 | 2 2 | 2020-12-23 07:16:56 |
| 7142 | 2005-07-27 06:55:39.000 | 1743 1743 | 396 396 | 2005-07-28 01:41:39.000 | 2 2 | 2020-12-23 07:17:02 |
| 7313 | 2005-07-27 13:11:57.000 | 1884 1884 | 396 396 | 2005-08-02 07:31:57.000 | 1 1 | 2020-12-23 07:17:04 |
| 8371 | 2005-07-29 05:16:35.000 | 2466 2466 | 396 396 | 2005-07-31 01:49:35.000 | 1 1 | 2020-12-23 07:17:20 |
| 8807 | 2005-07-29 21:36:59.000 | 2612 2612 | 396 396 | 2005-08-01 17:40:59.000 | 1 1 | 2020-12-23 07:17:26 |
| 9344 | 2005-07-30 18:13:45.000 | 1005 1005 | 396 396 | 2005-08-07 15:23:45.000 | 2 2 | 2020-12-23 07:17:34 |
| 10120 | 2005-07-31 21:24:24.000 | 1709 1709 | 396 396 | 2005-08-03 17:44:24.000 | 2 2 | 2020-12-23 07:17:45 |
| 10124 | 2005-07-31 21:31:49.000 | 1956 1956 | 396 396 | 2005-08-04 00:06:49.000 | 1 1 | 2020-12-23 07:17:45 |
| 10195 | 2005-08-01 00:34:42.000 | 2691 2691 | 396 396 | 2005-08-08 05:04:42.000 | 2 2 | 2020-12-23 07:17:46 |
| 10610 | 2005-08-01 14:49:41.000 | 1865 1865 | 396 396 | 2005-08-03 13:07:41.000 | 1 1 | 2020-12-23 07:17:52 |
| 12393 | 2005-08-18 09:02:41.000 | 2435 2435 | 396 396 | 2005-08-26 12:47:41.000 | 1 1 | 2020-12-23 07:18:17 |
| 12895 | 2005-08-19 03:50:48.000 | 4372 4372 | 396 396 | 2005-08-26 09:13:48.000 | 1 1 | 2020-12-23 07:18:24 |
| 13355 | 2005-08-19 20:59:19.000 | 585 585 | 396 396 | 2005-08-23 21:44:19.000 | 1 1 | 2020-12-23 07:18:30 |
| 14078 | 2005-08-20 23:26:40.000 | 1642 1642 | 396 396 | 2005-08-28 02:30:40.000 | 1 1 | 2020-12-23 07:18:42 |
| 14169 | 2005-08-21 03:00:31.000 | 3800 3800 | 396 396 | 2005-08-30 01:16:31.000 | 1 1 | 2020-12-23 07:18:43 |
| 14508 | 2005-08-21 14:33:58.000 | 703 703 | 396 396 | 2005-08-27 10:45:58.000 | 2 2 | 2020-12-23 07:18:48 |
| 14778 | 2005-08-21 23:56:30.000 | 2152 2152 | 396 396 | 2005-08-26 00:07:30.000 | 2 2 | 2020-12-23 07:18:51 |
| 14792 | 2005-08-22 00:36:41.000 | 4436 4436 | 396 396 | 2005-08-30 18:58:41.000 | 1 1 | 2020-12-23 07:18:52 |
| 15198 | 2005-08-22 16:15:33.000 | 1253 1253 | 396 396 | 2005-08-29 20:49:33.000 | 1 1 | 2020-12-23 07:18:58 |
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) ;