rental
34 rows where customer_id = 502
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 |
|---|---|---|---|---|---|---|
| 258 | 2005-05-26 15:28:14.000 | 3534 3534 | 502 502 | 2005-05-30 18:38:14.000 | 2 2 | 2020-12-23 07:15:23 |
| 861 | 2005-05-30 02:48:32.000 | 3711 3711 | 502 502 | 2005-06-06 05:43:32.000 | 1 1 | 2020-12-23 07:15:31 |
| 893 | 2005-05-30 08:06:59.000 | 3260 3260 | 502 502 | 2005-06-07 08:23:59.000 | 2 2 | 2020-12-23 07:15:32 |
| 965 | 2005-05-30 19:00:14.000 | 3363 3363 | 502 502 | 2005-05-31 17:10:14.000 | 2 2 | 2020-12-23 07:15:33 |
| 1696 | 2005-06-16 12:50:01.000 | 3928 3928 | 502 502 | 2005-06-24 12:08:01.000 | 2 2 | 2020-12-23 07:15:42 |
| 2420 | 2005-06-18 17:22:28.000 | 241 241 | 502 502 | 2005-06-23 17:45:28.000 | 1 1 | 2020-12-23 07:15:53 |
| 2911 | 2005-06-20 03:32:37.000 | 3645 3645 | 502 502 | 2005-06-22 22:06:37.000 | 1 1 | 2020-12-23 07:16:00 |
| 3614 | 2005-07-06 05:46:05.000 | 853 853 | 502 502 | 2005-07-11 01:24:05.000 | 2 2 | 2020-12-23 07:16:10 |
| 4606 | 2005-07-08 07:05:50.000 | 1946 1946 | 502 502 | 2005-07-16 09:11:50.000 | 2 2 | 2020-12-23 07:16:25 |
| 5368 | 2005-07-09 18:41:59.000 | 4429 4429 | 502 502 | 2005-07-16 00:32:59.000 | 2 2 | 2020-12-23 07:16:36 |
| 5662 | 2005-07-10 07:59:24.000 | 219 219 | 502 502 | 2005-07-14 13:06:24.000 | 1 1 | 2020-12-23 07:16:40 |
| 6414 | 2005-07-11 23:26:13.000 | 814 814 | 502 502 | 2005-07-18 17:29:13.000 | 1 1 | 2020-12-23 07:16:51 |
| 6760 | 2005-07-12 15:16:00.000 | 501 501 | 502 502 | 2005-07-20 13:20:00.000 | 2 2 | 2020-12-23 07:16:56 |
| 6828 | 2005-07-12 18:38:51.000 | 874 874 | 502 502 | 2005-07-14 20:10:51.000 | 1 1 | 2020-12-23 07:16:57 |
| 6924 | 2005-07-26 22:51:53.000 | 1257 1257 | 502 502 | 2005-08-03 19:04:53.000 | 2 2 | 2020-12-23 07:16:59 |
| 7213 | 2005-07-27 09:22:29.000 | 2836 2836 | 502 502 | 2005-08-03 13:53:29.000 | 2 2 | 2020-12-23 07:17:03 |
| 7255 | 2005-07-27 10:49:54.000 | 2101 2101 | 502 502 | 2005-07-31 10:40:54.000 | 2 2 | 2020-12-23 07:17:03 |
| 7757 | 2005-07-28 06:23:00.000 | 3445 3445 | 502 502 | 2005-07-30 12:02:00.000 | 1 1 | 2020-12-23 07:17:11 |
| 7884 | 2005-07-28 10:37:24.000 | 3871 3871 | 502 502 | 2005-07-31 10:31:24.000 | 1 1 | 2020-12-23 07:17:13 |
| 8034 | 2005-07-28 16:20:26.000 | 1997 1997 | 502 502 | 2005-08-04 19:11:26.000 | 2 2 | 2020-12-23 07:17:15 |
| 9232 | 2005-07-30 13:43:00.000 | 1991 1991 | 502 502 | 2005-08-02 11:39:00.000 | 2 2 | 2020-12-23 07:17:33 |
| 9599 | 2005-07-31 03:32:06.000 | 3164 3164 | 502 502 | 2005-08-04 07:47:06.000 | 2 2 | 2020-12-23 07:17:38 |
| 10390 | 2005-08-01 06:46:48.000 | 1489 1489 | 502 502 | 2005-08-09 02:55:48.000 | 2 2 | 2020-12-23 07:17:49 |
| 10938 | 2005-08-02 03:05:22.000 | 3918 3918 | 502 502 | 2005-08-05 08:31:22.000 | 1 1 | 2020-12-23 07:17:57 |
| 11036 | 2005-08-02 05:56:29.000 | 2054 2054 | 502 502 | 2005-08-05 05:00:29.000 | 2 2 | 2020-12-23 07:17:58 |
| 11301 | 2005-08-02 15:37:59.000 | 676 676 | 502 502 | 2005-08-04 10:57:59.000 | 2 2 | 2020-12-23 07:18:02 |
| 11317 | 2005-08-02 16:08:52.000 | 1889 1889 | 502 502 | 2005-08-08 21:12:52.000 | 1 1 | 2020-12-23 07:18:02 |
| 11435 | 2005-08-02 20:14:23.000 | 1625 1625 | 502 502 | 2005-08-05 20:40:23.000 | 1 1 | 2020-12-23 07:18:04 |
| 11620 | 2005-08-17 04:06:22.000 | 3801 3801 | 502 502 | 2005-08-17 23:53:22.000 | 1 1 | 2020-12-23 07:18:06 |
| 12762 | 2005-08-18 23:06:54.000 | 3909 3909 | 502 502 | 2005-08-21 18:30:54.000 | 1 1 | 2020-12-23 07:18:22 |
| 13052 | 2005-08-19 09:31:42.000 | 3036 3036 | 502 502 | 2005-08-28 15:11:42.000 | 2 2 | 2020-12-23 07:18:26 |
| 14411 | 2005-08-21 10:54:57.000 | 2125 2125 | 502 502 | 2005-08-22 13:17:57.000 | 2 2 | 2020-12-23 07:18:47 |
| 15486 | 2005-08-23 02:05:20.000 | 1666 1666 | 502 502 | 2005-08-29 07:52:20.000 | 2 2 | 2020-12-23 07:19:02 |
| 16034 | 2005-08-23 22:06:34.000 | 655 655 | 502 502 | 2005-08-29 18:44:34.000 | 1 1 | 2020-12-23 07:19:10 |
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) ;