rental
32 rows where customer_id = 503
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 |
|---|---|---|---|---|---|---|
| 109 | 2005-05-25 18:40:20.000 | 1044 1044 | 503 503 | 2005-05-29 20:39:20.000 | 2 2 | 2020-12-23 07:15:21 |
| 353 | 2005-05-27 06:03:39.000 | 3989 3989 | 503 503 | 2005-06-03 04:39:39.000 | 2 2 | 2020-12-23 07:15:24 |
| 631 | 2005-05-28 17:36:32.000 | 2465 2465 | 503 503 | 2005-06-03 14:56:32.000 | 2 2 | 2020-12-23 07:15:28 |
| 1074 | 2005-05-31 10:04:42.000 | 2508 2508 | 503 503 | 2005-06-02 15:27:42.000 | 2 2 | 2020-12-23 07:15:34 |
| 2108 | 2005-06-17 19:35:26.000 | 1395 1395 | 503 503 | 2005-06-25 15:45:26.000 | 1 1 | 2020-12-23 07:15:48 |
| 2225 | 2005-06-18 03:35:40.000 | 2829 2829 | 503 503 | 2005-06-23 03:05:40.000 | 1 1 | 2020-12-23 07:15:50 |
| 3430 | 2005-06-21 18:46:08.000 | 1613 1613 | 503 503 | 2005-06-22 13:49:08.000 | 2 2 | 2020-12-23 07:16:07 |
| 3935 | 2005-07-06 21:08:29.000 | 3402 3402 | 503 503 | 2005-07-15 23:28:29.000 | 2 2 | 2020-12-23 07:16:14 |
| 4570 | 2005-07-08 05:33:59.000 | 2612 2612 | 503 503 | 2005-07-14 09:27:59.000 | 1 1 | 2020-12-23 07:16:24 |
| 5465 | 2005-07-09 23:01:13.000 | 723 723 | 503 503 | 2005-07-13 01:03:13.000 | 1 1 | 2020-12-23 07:16:37 |
| 5925 | 2005-07-10 21:41:27.000 | 3724 3724 | 503 503 | 2005-07-18 18:35:27.000 | 2 2 | 2020-12-23 07:16:44 |
| 6166 | 2005-07-11 10:19:05.000 | 967 967 | 503 503 | 2005-07-12 14:30:05.000 | 1 1 | 2020-12-23 07:16:47 |
| 6529 | 2005-07-12 04:31:04.000 | 1058 1058 | 503 503 | 2005-07-17 07:09:04.000 | 2 2 | 2020-12-23 07:16:53 |
| 6950 | 2005-07-26 23:45:33.000 | 197 197 | 503 503 | 2005-07-31 04:40:33.000 | 2 2 | 2020-12-23 07:16:59 |
| 8178 | 2005-07-28 21:54:31.000 | 2825 2825 | 503 503 | 2005-08-02 23:56:31.000 | 2 2 | 2020-12-23 07:17:17 |
| 9725 | 2005-07-31 08:35:18.000 | 3960 3960 | 503 503 | 2005-08-03 03:46:18.000 | 2 2 | 2020-12-23 07:17:40 |
| 9974 | 2005-07-31 16:51:11.000 | 430 430 | 503 503 | 2005-08-05 16:04:11.000 | 1 1 | 2020-12-23 07:17:43 |
| 11075 | 2005-08-02 07:24:23.000 | 3027 3027 | 503 503 | 2005-08-08 04:55:23.000 | 1 1 | 2020-12-23 07:17:59 |
| 11161 | 2005-08-02 10:05:57.000 | 3321 3321 | 503 503 | 2005-08-06 05:05:57.000 | 2 2 | 2020-12-23 07:18:00 |
| 11858 | 2005-08-17 13:50:31.000 | 3483 3483 | 503 503 | 2005-08-19 08:45:31.000 | 2 2 | 2020-12-23 07:18:09 |
| 12370 | 2005-08-18 07:57:47.000 | 3343 3343 | 503 503 | 2005-08-22 11:32:47.000 | 1 1 | 2020-12-23 07:18:16 |
| 12783 | 2005-08-19 00:01:14.000 | 1109 1109 | 503 503 | 2005-08-21 22:02:14.000 | 2 2 | 2020-12-23 07:18:22 |
| 13332 | 2005-08-19 20:00:51.000 | 3144 3144 | 503 503 | 2005-08-25 14:30:51.000 | 1 1 | 2020-12-23 07:18:30 |
| 13551 | 2005-08-20 04:00:30.000 | 1049 1049 | 503 503 | 2005-08-21 06:26:30.000 | 2 2 | 2020-12-23 07:18:34 |
| 14823 | 2005-08-22 01:24:42.000 | 680 680 | 503 503 | 2005-08-22 19:45:42.000 | 2 2 | 2020-12-23 07:18:52 |
| 14913 | 2005-08-22 04:52:13.000 | 3609 3609 | 503 503 | 2005-08-23 06:49:13.000 | 2 2 | 2020-12-23 07:18:53 |
| 15056 | 2005-08-22 10:15:54.000 | 1871 1871 | 503 503 | 2005-08-25 07:21:54.000 | 1 1 | 2020-12-23 07:18:56 |
| 15077 | 2005-08-22 11:09:18.000 | 3142 3142 | 503 503 | 2005-08-29 08:41:18.000 | 1 1 | 2020-12-23 07:18:56 |
| 15588 | 2005-08-23 06:02:35.000 | 1810 1810 | 503 503 | 2005-08-30 04:01:35.000 | 2 2 | 2020-12-23 07:19:03 |
| 15692 | 2005-08-23 10:00:02.000 | 1852 1852 | 503 503 | 2005-08-24 05:25:02.000 | 1 1 | 2020-12-23 07:19:05 |
| 15726 | 2005-08-23 11:28:26.000 | 906 906 | 503 503 | 2005-08-28 11:23:26.000 | 2 2 | 2020-12-23 07:19:05 |
| 15797 | 2005-08-23 14:13:47.000 | 497 497 | 503 503 | 2005-08-25 09:16:47.000 | 2 2 | 2020-12-23 07:19:06 |
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) ;