rental
28 rows where customer_id = 515
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 |
|---|---|---|---|---|---|---|
| 187 | 2005-05-26 05:42:37.000 | 4004 4004 | 515 515 | 2005-06-04 00:38:37.000 | 1 1 | 2020-12-23 07:15:22 |
| 292 | 2005-05-26 20:22:12.000 | 4264 4264 | 515 515 | 2005-06-05 00:58:12.000 | 1 1 | 2020-12-23 07:15:23 |
| 1244 | 2005-06-15 05:08:40.000 | 1026 1026 | 515 515 | 2005-06-20 10:41:40.000 | 1 1 | 2020-12-23 07:15:36 |
| 1531 | 2005-06-16 00:40:34.000 | 1388 1388 | 515 515 | 2005-06-22 02:44:34.000 | 1 1 | 2020-12-23 07:15:40 |
| 2003 | 2005-06-17 11:40:35.000 | 1581 1581 | 515 515 | 2005-06-19 08:30:35.000 | 2 2 | 2020-12-23 07:15:47 |
| 2484 | 2005-06-18 21:25:23.000 | 1511 1511 | 515 515 | 2005-06-24 16:03:23.000 | 2 2 | 2020-12-23 07:15:54 |
| 2513 | 2005-06-18 23:53:15.000 | 3379 3379 | 515 515 | 2005-06-24 21:16:15.000 | 2 2 | 2020-12-23 07:15:54 |
| 3063 | 2005-06-20 13:52:03.000 | 3954 3954 | 515 515 | 2005-06-28 13:36:03.000 | 2 2 | 2020-12-23 07:16:02 |
| 3782 | 2005-07-06 13:57:03.000 | 3365 3365 | 515 515 | 2005-07-09 11:13:03.000 | 2 2 | 2020-12-23 07:16:12 |
| 4111 | 2005-07-07 06:47:56.000 | 1009 1009 | 515 515 | 2005-07-13 02:13:56.000 | 1 1 | 2020-12-23 07:16:17 |
| 5216 | 2005-07-09 11:54:58.000 | 1644 1644 | 515 515 | 2005-07-12 09:46:58.000 | 2 2 | 2020-12-23 07:16:34 |
| 5546 | 2005-07-10 02:50:37.000 | 2918 2918 | 515 515 | 2005-07-16 08:22:37.000 | 1 1 | 2020-12-23 07:16:39 |
| 5697 | 2005-07-10 09:44:44.000 | 934 934 | 515 515 | 2005-07-12 12:13:44.000 | 2 2 | 2020-12-23 07:16:41 |
| 7429 | 2005-07-27 17:24:50.000 | 2160 2160 | 515 515 | 2005-08-05 23:02:50.000 | 1 1 | 2020-12-23 07:17:06 |
| 8706 | 2005-07-29 17:19:15.000 | 2886 2886 | 515 515 | 2005-08-03 22:52:15.000 | 1 1 | 2020-12-23 07:17:25 |
| 10159 | 2005-07-31 22:54:30.000 | 1174 1174 | 515 515 | 2005-08-03 00:43:30.000 | 2 2 | 2020-12-23 07:17:46 |
| 10716 | 2005-08-01 18:53:48.000 | 3405 3405 | 515 515 | 2005-08-04 13:49:48.000 | 1 1 | 2020-12-23 07:17:54 |
| 11451 | 2005-08-02 20:45:56.000 | 776 776 | 515 515 | 2005-08-06 21:42:56.000 | 2 2 | 2020-12-23 07:18:04 |
| 11572 | 2005-08-17 01:37:55.000 | 3512 3512 | 515 515 | 2005-08-19 06:22:55.000 | 2 2 | 2020-12-23 07:18:06 |
| 11691 | 2005-08-17 06:51:05.000 | 2529 2529 | 515 515 | 2005-08-24 09:53:05.000 | 1 1 | 2020-12-23 07:18:07 |
| 11937 | 2005-08-17 16:48:36.000 | 2926 2926 | 515 515 | 2005-08-24 19:01:36.000 | 1 1 | 2020-12-23 07:18:10 |
| 12416 | 2005-08-18 09:56:48.000 | 3784 3784 | 515 515 | 2005-08-22 12:34:48.000 | 1 1 | 2020-12-23 07:18:17 |
| 12486 | 2005-08-18 12:42:50.000 | 2991 2991 | 515 515 | 2005-08-27 13:41:50.000 | 2 2 | 2020-12-23 07:18:18 |
| 12889 | 2005-08-19 03:41:31.000 | 4376 4376 | 515 515 | 2005-08-27 00:46:31.000 | 2 2 | 2020-12-23 07:18:23 |
| 14072 | 2005-08-20 23:07:10.000 | 2387 2387 | 515 515 | 2005-08-23 03:38:10.000 | 2 2 | 2020-12-23 07:18:42 |
| 14378 | 2005-08-21 09:50:02.000 | 810 810 | 515 515 | 2005-08-30 09:07:02.000 | 1 1 | 2020-12-23 07:18:46 |
| 14414 | 2005-08-21 11:08:17.000 | 1757 1757 | 515 515 | 2005-08-23 08:37:17.000 | 2 2 | 2020-12-23 07:18:47 |
| 15274 | 2005-08-22 18:55:52.000 | 3519 3519 | 515 515 | 2005-08-23 20:02:52.000 | 1 1 | 2020-12-23 07:18:59 |
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) ;