rental
26 rows where customer_id = 121
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 |
|---|---|---|---|---|---|---|
| 217 | 2005-05-26 09:24:26.000 | 4395 4395 | 121 121 | 2005-05-31 03:24:26.000 | 2 2 | 2020-12-23 07:15:22 |
| 1634 | 2005-06-16 08:16:05.000 | 3990 3990 | 121 121 | 2005-06-17 04:49:05.000 | 1 1 | 2020-12-23 07:15:41 |
| 1833 | 2005-06-16 22:45:03.000 | 1337 1337 | 121 121 | 2005-06-20 22:02:03.000 | 2 2 | 2020-12-23 07:15:44 |
| 5670 | 2005-07-10 08:14:52.000 | 610 610 | 121 121 | 2005-07-14 04:13:52.000 | 2 2 | 2020-12-23 07:16:40 |
| 6780 | 2005-07-12 16:18:12.000 | 1255 1255 | 121 121 | 2005-07-13 17:56:12.000 | 2 2 | 2020-12-23 07:16:56 |
| 7114 | 2005-07-27 05:42:13.000 | 3892 3892 | 121 121 | 2005-07-29 01:59:13.000 | 1 1 | 2020-12-23 07:17:01 |
| 7185 | 2005-07-27 08:23:54.000 | 2340 2340 | 121 121 | 2005-07-30 09:50:54.000 | 1 1 | 2020-12-23 07:17:02 |
| 7298 | 2005-07-27 12:45:14.000 | 1653 1653 | 121 121 | 2005-07-30 07:02:14.000 | 1 1 | 2020-12-23 07:17:04 |
| 8370 | 2005-07-29 05:16:21.000 | 1206 1206 | 121 121 | 2005-08-06 23:16:21.000 | 1 1 | 2020-12-23 07:17:20 |
| 8788 | 2005-07-29 20:46:44.000 | 3412 3412 | 121 121 | 2005-08-03 02:25:44.000 | 2 2 | 2020-12-23 07:17:26 |
| 8875 | 2005-07-30 00:15:09.000 | 1294 1294 | 121 121 | 2005-08-04 02:54:09.000 | 2 2 | 2020-12-23 07:17:27 |
| 8969 | 2005-07-30 04:00:19.000 | 2043 2043 | 121 121 | 2005-08-06 04:39:19.000 | 1 1 | 2020-12-23 07:17:29 |
| 10457 | 2005-08-01 09:17:34.000 | 3052 3052 | 121 121 | 2005-08-06 07:28:34.000 | 2 2 | 2020-12-23 07:17:50 |
| 11720 | 2005-08-17 07:46:54.000 | 1707 1707 | 121 121 | 2005-08-26 04:19:54.000 | 2 2 | 2020-12-23 07:18:08 |
| 12242 | 2005-08-18 03:37:31.000 | 2095 2095 | 121 121 | 2005-08-25 06:50:31.000 | 1 1 | 2020-12-23 07:18:15 |
| 12428 | 2005-08-18 10:24:21.000 | 3735 3735 | 121 121 | 2005-08-24 05:12:21.000 | 1 1 | 2020-12-23 07:18:17 |
| 12734 | 2005-08-18 22:04:52.000 | 3619 3619 | 121 121 | 2005-08-25 00:34:52.000 | 1 1 | 2020-12-23 07:18:21 |
| 12881 | 2005-08-19 03:28:13.000 | 1432 1432 | 121 121 | 2005-08-25 05:25:13.000 | 1 1 | 2020-12-23 07:18:23 |
| 12892 | 2005-08-19 03:46:34.000 | 1044 1044 | 121 121 | 2005-08-21 05:11:34.000 | 2 2 | 2020-12-23 07:18:23 |
| 14138 | 2005-08-21 01:59:37.000 | 1238 1238 | 121 121 | 2005-08-30 01:17:37.000 | 2 2 | 2020-12-23 07:18:43 |
| 14177 | 2005-08-21 03:11:33.000 | 409 409 | 121 121 | 2005-08-28 21:41:33.000 | 2 2 | 2020-12-23 07:18:43 |
| 14412 | 2005-08-21 11:02:09.000 | 212 212 | 121 121 | 2005-08-29 06:44:09.000 | 1 1 | 2020-12-23 07:18:47 |
| 14464 | 2005-08-21 12:52:54.000 | 2310 2310 | 121 121 | 2005-08-25 16:42:54.000 | 1 1 | 2020-12-23 07:18:47 |
| 15114 | 2005-08-22 12:24:55.000 | 2481 2481 | 121 121 | 2005-08-31 17:06:55.000 | 1 1 | 2020-12-23 07:18:56 |
| 15369 | 2005-08-22 21:58:06.000 | 881 881 | 121 121 | 2005-08-26 00:27:06.000 | 2 2 | 2020-12-23 07:19:00 |
| 16041 | 2005-08-23 22:20:26.000 | 4116 4116 | 121 121 | 2005-08-25 20:14:26.000 | 2 2 | 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) ;