rental
25 rows where customer_id = 156
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 |
|---|---|---|---|---|---|---|
| 899 | 2005-05-30 09:29:30.000 | 1096 1096 | 156 156 | 2005-06-06 12:39:30.000 | 2 2 | 2020-12-23 07:15:32 |
| 1052 | 2005-05-31 07:07:03.000 | 2157 2157 | 156 156 | 2005-06-05 09:38:03.000 | 1 1 | 2020-12-23 07:15:34 |
| 2089 | 2005-06-17 17:45:09.000 | 4030 4030 | 156 156 | 2005-06-25 16:41:09.000 | 1 1 | 2020-12-23 07:15:48 |
| 2221 | 2005-06-18 03:24:56.000 | 3905 3905 | 156 156 | 2005-06-22 08:27:56.000 | 1 1 | 2020-12-23 07:15:50 |
| 2658 | 2005-06-19 10:43:42.000 | 3281 3281 | 156 156 | 2005-06-24 16:23:42.000 | 1 1 | 2020-12-23 07:15:56 |
| 2782 | 2005-06-19 18:25:07.000 | 3644 3644 | 156 156 | 2005-06-22 14:10:07.000 | 1 1 | 2020-12-23 07:15:58 |
| 4394 | 2005-07-07 21:12:45.000 | 563 563 | 156 156 | 2005-07-16 18:24:45.000 | 2 2 | 2020-12-23 07:16:21 |
| 5534 | 2005-07-10 02:26:49.000 | 3251 3251 | 156 156 | 2005-07-11 07:13:49.000 | 1 1 | 2020-12-23 07:16:38 |
| 5828 | 2005-07-10 16:27:25.000 | 2999 2999 | 156 156 | 2005-07-11 18:42:25.000 | 1 1 | 2020-12-23 07:16:43 |
| 5908 | 2005-07-10 20:44:14.000 | 810 810 | 156 156 | 2005-07-13 15:05:14.000 | 2 2 | 2020-12-23 07:16:44 |
| 6540 | 2005-07-12 04:51:13.000 | 937 937 | 156 156 | 2005-07-21 03:38:13.000 | 1 1 | 2020-12-23 07:16:53 |
| 7389 | 2005-07-27 15:56:15.000 | 3822 3822 | 156 156 | 2005-07-30 21:28:15.000 | 2 2 | 2020-12-23 07:17:06 |
| 7822 | 2005-07-28 08:31:45.000 | 1428 1428 | 156 156 | 2005-07-31 11:06:45.000 | 1 1 | 2020-12-23 07:17:12 |
| 9409 | 2005-07-30 20:33:53.000 | 3053 3053 | 156 156 | 2005-08-05 18:32:53.000 | 2 2 | 2020-12-23 07:17:35 |
| 9696 | 2005-07-31 07:13:46.000 | 2703 2703 | 156 156 | 2005-08-03 10:49:46.000 | 2 2 | 2020-12-23 07:17:39 |
| 10309 | 2005-08-01 04:24:18.000 | 1505 1505 | 156 156 | 2005-08-09 08:32:18.000 | 2 2 | 2020-12-23 07:17:48 |
| 11490 | 2005-08-02 22:36:00.000 | 1178 1178 | 156 156 | 2005-08-09 16:36:00.000 | 1 1 | 2020-12-23 07:18:05 |
| 11587 | 2005-08-17 02:21:03.000 | 1319 1319 | 156 156 | 2005-08-25 21:02:03.000 | 2 2 | 2020-12-23 07:18:06 |
| 13530 | 2005-08-20 03:12:43.000 | 597 597 | 156 156 | 2005-08-23 09:01:43.000 | 2 2 | 2020-12-23 07:18:33 |
| 13531 | 2005-08-20 03:26:10.000 | 2778 2778 | 156 156 | 2005-08-25 03:41:10.000 | 1 1 | 2020-12-23 07:18:33 |
| 13802 | 2005-08-20 12:44:53.000 | 2079 2079 | 156 156 | 2005-08-22 09:18:53.000 | 2 2 | 2020-12-23 07:18:38 |
| 14794 | 2005-08-22 00:39:31.000 | 413 413 | 156 156 | 2005-08-28 20:08:31.000 | 2 2 | 2020-12-23 07:18:52 |
| 14831 | 2005-08-22 01:40:49.000 | 3370 3370 | 156 156 | 2005-08-23 02:47:49.000 | 1 1 | 2020-12-23 07:18:52 |
| 14914 | 2005-08-22 04:53:35.000 | 4348 4348 | 156 156 | 2005-08-26 10:35:35.000 | 1 1 | 2020-12-23 07:18:53 |
| 15408 | 2005-08-22 23:26:32.000 | 165 165 | 156 156 | 2005-08-30 20:22:32.000 | 1 1 | 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) ;