rental
26 rows where customer_id = 387
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 |
|---|---|---|---|---|---|---|
| 302 | 2005-05-26 21:13:46.000 | 2921 2921 | 387 387 | 2005-06-03 15:49:46.000 | 2 2 | 2020-12-23 07:15:24 |
| 697 | 2005-05-29 02:04:04.000 | 3949 3949 | 387 387 | 2005-06-04 00:47:04.000 | 2 2 | 2020-12-23 07:15:29 |
| 841 | 2005-05-30 00:31:17.000 | 4318 4318 | 387 387 | 2005-06-02 19:14:17.000 | 1 1 | 2020-12-23 07:15:31 |
| 1127 | 2005-05-31 17:45:49.000 | 2412 2412 | 387 387 | 2005-06-08 22:41:49.000 | 2 2 | 2020-12-23 07:15:35 |
| 1464 | 2005-06-15 20:38:14.000 | 4113 4113 | 387 387 | 2005-06-17 14:52:14.000 | 2 2 | 2020-12-23 07:15:39 |
| 1465 | 2005-06-15 20:43:08.000 | 609 609 | 387 387 | 2005-06-18 23:00:08.000 | 1 1 | 2020-12-23 07:15:39 |
| 2068 | 2005-06-17 16:11:46.000 | 4252 4252 | 387 387 | 2005-06-20 11:28:46.000 | 1 1 | 2020-12-23 07:15:48 |
| 2100 | 2005-06-17 18:53:21.000 | 2267 2267 | 387 387 | 2005-06-19 21:49:21.000 | 2 2 | 2020-12-23 07:15:48 |
| 2981 | 2005-06-20 08:35:17.000 | 522 522 | 387 387 | 2005-06-28 09:14:17.000 | 1 1 | 2020-12-23 07:16:00 |
| 3378 | 2005-06-21 13:51:28.000 | 35 35 | 387 387 | 2005-06-25 09:21:28.000 | 1 1 | 2020-12-23 07:16:06 |
| 6216 | 2005-07-11 12:57:05.000 | 3571 3571 | 387 387 | 2005-07-13 12:31:05.000 | 1 1 | 2020-12-23 07:16:48 |
| 6456 | 2005-07-12 01:05:11.000 | 259 259 | 387 387 | 2005-07-20 23:26:11.000 | 2 2 | 2020-12-23 07:16:51 |
| 6517 | 2005-07-12 03:52:39.000 | 185 185 | 387 387 | 2005-07-20 08:00:39.000 | 1 1 | 2020-12-23 07:16:52 |
| 7497 | 2005-07-27 20:05:27.000 | 286 286 | 387 387 | 2005-07-30 22:47:27.000 | 1 1 | 2020-12-23 07:17:07 |
| 8090 | 2005-07-28 18:27:29.000 | 1336 1336 | 387 387 | 2005-08-02 14:08:29.000 | 2 2 | 2020-12-23 07:17:16 |
| 10564 | 2005-08-01 13:07:34.000 | 4469 4469 | 387 387 | 2005-08-06 15:14:34.000 | 2 2 | 2020-12-23 07:17:52 |
| 10838 | 2005-08-01 23:36:10.000 | 69 69 | 387 387 | 2005-08-05 04:55:10.000 | 2 2 | 2020-12-23 07:17:55 |
| 11682 | 2005-08-17 06:13:40.000 | 2544 2544 | 387 387 | 2005-08-18 06:11:40.000 | 1 1 | 2020-12-23 07:18:07 |
| 12153 | 2005-08-18 00:22:30.000 | 3929 3929 | 387 387 | 2005-08-23 04:13:30.000 | 2 2 | 2020-12-23 07:18:13 |
| 12936 | 2005-08-19 05:25:06.000 | 654 654 | 387 387 | 2005-08-28 08:21:06.000 | 1 1 | 2020-12-23 07:18:24 |
| 13034 | 2005-08-19 08:41:29.000 | 990 990 | 387 387 | 2005-08-20 07:36:29.000 | 2 2 | 2020-12-23 07:18:26 |
| 13082 | 2005-08-19 10:19:19.000 | 2117 2117 | 387 387 | 2005-08-28 05:02:19.000 | 1 1 | 2020-12-23 07:18:26 |
| 13645 | 2005-08-20 07:47:05.000 | 157 157 | 387 387 | 2005-08-23 02:58:05.000 | 1 1 | 2020-12-23 07:18:35 |
| 13772 | 2005-08-20 11:47:52.000 | 2038 2038 | 387 387 | 2005-08-28 05:50:52.000 | 2 2 | 2020-12-23 07:18:37 |
| 14279 | 2005-08-21 06:39:08.000 | 3325 3325 | 387 387 | 2005-08-29 11:01:08.000 | 2 2 | 2020-12-23 07:18:45 |
| 14979 | 2005-08-22 07:16:36.000 | 2320 2320 | 387 387 | 2005-08-24 02:29:36.000 | 2 2 | 2020-12-23 07:18:54 |
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) ;