rental
26 rows where customer_id = 495
This data as json, xlsx, CSV (advanced)
Suggested facets: staff_id, rental_date (date), return_date (date), last_update (date)
| rental_id ▼ | rental_date | inventory_id | customer_id | return_date | staff_id | last_update |
|---|---|---|---|---|---|---|
| 623 | 2005-05-28 16:01:28.000 | 1222 1222 | 495 495 | 2005-05-30 11:19:28.000 | 1 1 | 2020-12-23 07:15:28 |
| 741 | 2005-05-29 08:35:49.000 | 3189 3189 | 495 495 | 2005-06-04 11:55:49.000 | 1 1 | 2020-12-23 07:15:29 |
| 2074 | 2005-06-17 16:40:03.000 | 71 71 | 495 495 | 2005-06-20 21:34:03.000 | 1 1 | 2020-12-23 07:15:48 |
| 2349 | 2005-06-18 12:25:14.000 | 1536 1536 | 495 495 | 2005-06-19 11:24:14.000 | 2 2 | 2020-12-23 07:15:52 |
| 2549 | 2005-06-19 02:46:39.000 | 3854 3854 | 495 495 | 2005-06-26 22:30:39.000 | 2 2 | 2020-12-23 07:15:55 |
| 3129 | 2005-06-20 18:57:48.000 | 1789 1789 | 495 495 | 2005-06-28 13:45:48.000 | 1 1 | 2020-12-23 07:16:02 |
| 3966 | 2005-07-06 22:38:49.000 | 556 556 | 495 495 | 2005-07-07 23:33:49.000 | 1 1 | 2020-12-23 07:16:15 |
| 5484 | 2005-07-09 23:54:37.000 | 3248 3248 | 495 495 | 2005-07-15 02:05:37.000 | 1 1 | 2020-12-23 07:16:38 |
| 6426 | 2005-07-11 23:56:38.000 | 498 498 | 495 495 | 2005-07-21 05:22:38.000 | 1 1 | 2020-12-23 07:16:51 |
| 7191 | 2005-07-27 08:36:15.000 | 4292 4292 | 495 495 | 2005-08-03 08:54:15.000 | 1 1 | 2020-12-23 07:17:03 |
| 8151 | 2005-07-28 20:50:52.000 | 4370 4370 | 495 495 | 2005-07-31 14:50:52.000 | 1 1 | 2020-12-23 07:17:17 |
| 8383 | 2005-07-29 05:36:47.000 | 3809 3809 | 495 495 | 2005-08-03 05:53:47.000 | 2 2 | 2020-12-23 07:17:20 |
| 8451 | 2005-07-29 07:44:56.000 | 3309 3309 | 495 495 | 2005-08-06 02:29:56.000 | 1 1 | 2020-12-23 07:17:21 |
| 8672 | 2005-07-29 15:49:48.000 | 405 405 | 495 495 | 2005-08-06 17:59:48.000 | 2 2 | 2020-12-23 07:17:24 |
| 9387 | 2005-07-30 19:27:05.000 | 577 577 | 495 495 | 2005-08-07 21:19:05.000 | 2 2 | 2020-12-23 07:17:35 |
| 9741 | 2005-07-31 09:09:22.000 | 1971 1971 | 495 495 | 2005-08-07 10:01:22.000 | 1 1 | 2020-12-23 07:17:40 |
| 10065 | 2005-07-31 19:27:34.000 | 1426 1426 | 495 495 | 2005-08-01 13:45:34.000 | 2 2 | 2020-12-23 07:17:45 |
| 10643 | 2005-08-01 15:48:33.000 | 3853 3853 | 495 495 | 2005-08-06 20:24:33.000 | 2 2 | 2020-12-23 07:17:53 |
| 10783 | 2005-08-01 21:23:37.000 | 1192 1192 | 495 495 | 2005-08-09 20:18:37.000 | 1 1 | 2020-12-23 07:17:55 |
| 12782 | 2005-08-18 23:56:23.000 | 1454 1454 | 495 495 | 2005-08-25 18:47:23.000 | 1 1 | 2020-12-23 07:18:22 |
| 12837 | 2005-08-19 01:51:09.000 | 2288 2288 | 495 495 | 2005-08-22 07:14:09.000 | 2 2 | 2020-12-23 07:18:23 |
| 13205 | 2005-08-19 15:05:26.000 | 2616 2616 | 495 495 | 2005-08-25 10:41:26.000 | 2 2 | 2020-12-23 07:18:28 |
| 13445 | 2005-08-20 00:05:33.000 | 1630 1630 | 495 495 | 2005-08-21 21:20:33.000 | 1 1 | 2020-12-23 07:18:32 |
| 13753 | 2006-02-14 15:16:03.000 | 3746 3746 | 495 495 | 1 1 | 2020-12-23 07:18:37 | |
| 13818 | 2005-08-20 13:20:09.000 | 1283 1283 | 495 495 | 2005-08-21 18:41:09.000 | 1 1 | 2020-12-23 07:18:38 |
| 15984 | 2005-08-23 20:16:27.000 | 2011 2011 | 495 495 | 2005-08-27 01:43:27.000 | 1 1 | 2020-12-23 07:19:09 |
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) ;