rental
23 rows where customer_id = 291
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 |
|---|---|---|---|---|---|---|
| 54 | 2005-05-25 07:23:25.000 | 2787 2787 | 291 291 | 2005-06-01 05:05:25.000 | 2 2 | 2020-12-23 07:15:20 |
| 747 | 2005-05-29 09:26:34.000 | 1993 1993 | 291 291 | 2005-06-05 07:28:34.000 | 1 1 | 2020-12-23 07:15:29 |
| 1012 | 2005-05-31 02:18:05.000 | 688 688 | 291 291 | 2005-06-03 06:47:05.000 | 1 1 | 2020-12-23 07:15:33 |
| 1191 | 2005-06-15 01:10:35.000 | 2221 2221 | 291 291 | 2005-06-17 20:36:35.000 | 2 2 | 2020-12-23 07:15:36 |
| 2300 | 2005-06-18 08:22:34.000 | 1617 1617 | 291 291 | 2005-06-24 04:51:34.000 | 2 2 | 2020-12-23 07:15:51 |
| 3042 | 2005-06-20 12:38:27.000 | 3103 3103 | 291 291 | 2005-06-26 11:18:27.000 | 1 1 | 2020-12-23 07:16:01 |
| 3512 | 2005-07-06 00:43:06.000 | 371 371 | 291 291 | 2005-07-12 06:18:06.000 | 2 2 | 2020-12-23 07:16:08 |
| 4862 | 2005-07-08 19:02:46.000 | 293 293 | 291 291 | 2005-07-17 20:17:46.000 | 1 1 | 2020-12-23 07:16:29 |
| 5754 | 2005-07-10 12:32:43.000 | 162 162 | 291 291 | 2005-07-12 13:11:43.000 | 2 2 | 2020-12-23 07:16:42 |
| 6516 | 2005-07-12 03:51:54.000 | 863 863 | 291 291 | 2005-07-14 03:41:54.000 | 2 2 | 2020-12-23 07:16:52 |
| 6796 | 2005-07-12 16:44:16.000 | 227 227 | 291 291 | 2005-07-16 14:48:16.000 | 2 2 | 2020-12-23 07:16:57 |
| 7561 | 2005-07-27 22:21:05.000 | 3433 3433 | 291 291 | 2005-08-04 01:02:05.000 | 1 1 | 2020-12-23 07:17:08 |
| 7564 | 2005-07-27 22:31:17.000 | 2887 2887 | 291 291 | 2005-08-01 01:05:17.000 | 2 2 | 2020-12-23 07:17:08 |
| 8690 | 2005-07-29 16:39:28.000 | 1292 1292 | 291 291 | 2005-08-01 14:03:28.000 | 2 2 | 2020-12-23 07:17:25 |
| 8697 | 2005-07-29 16:46:07.000 | 443 443 | 291 291 | 2005-08-02 19:27:07.000 | 2 2 | 2020-12-23 07:17:25 |
| 9165 | 2005-07-30 11:24:28.000 | 4034 4034 | 291 291 | 2005-08-03 09:38:28.000 | 1 1 | 2020-12-23 07:17:32 |
| 9201 | 2005-07-30 12:42:21.000 | 4387 4387 | 291 291 | 2005-08-08 06:50:21.000 | 1 1 | 2020-12-23 07:17:32 |
| 9919 | 2005-07-31 14:55:46.000 | 3205 3205 | 291 291 | 2005-08-08 11:43:46.000 | 2 2 | 2020-12-23 07:17:43 |
| 10463 | 2005-08-01 09:39:43.000 | 1301 1301 | 291 291 | 2005-08-10 03:42:43.000 | 1 1 | 2020-12-23 07:17:50 |
| 11145 | 2005-08-02 09:43:24.000 | 1270 1270 | 291 291 | 2005-08-05 15:29:24.000 | 1 1 | 2020-12-23 07:18:00 |
| 13665 | 2005-08-20 08:19:20.000 | 117 117 | 291 291 | 2005-08-28 06:26:20.000 | 1 1 | 2020-12-23 07:18:35 |
| 14241 | 2005-08-21 05:24:55.000 | 2547 2547 | 291 291 | 2005-08-30 03:33:55.000 | 1 1 | 2020-12-23 07:18:44 |
| 15663 | 2005-08-23 08:54:26.000 | 3291 3291 | 291 291 | 2005-08-29 02:56:26.000 | 1 1 | 2020-12-23 07:19:04 |
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) ;