rental
19 rows where customer_id = 195
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 |
|---|---|---|---|---|---|---|
| 4234 | 2005-07-07 13:01:35.000 | 1179 1179 | 195 195 | 2005-07-15 13:05:35.000 | 1 1 | 2020-12-23 07:16:19 |
| 4315 | 2005-07-07 17:40:26.000 | 1472 1472 | 195 195 | 2005-07-09 22:58:26.000 | 2 2 | 2020-12-23 07:16:20 |
| 5228 | 2005-07-09 12:26:01.000 | 622 622 | 195 195 | 2005-07-14 13:31:01.000 | 2 2 | 2020-12-23 07:16:34 |
| 5536 | 2005-07-10 02:29:42.000 | 1919 1919 | 195 195 | 2005-07-13 04:06:42.000 | 2 2 | 2020-12-23 07:16:38 |
| 6175 | 2005-07-11 10:44:37.000 | 3037 3037 | 195 195 | 2005-07-15 08:13:37.000 | 1 1 | 2020-12-23 07:16:47 |
| 7349 | 2005-07-27 14:33:00.000 | 861 861 | 195 195 | 2005-08-01 15:01:00.000 | 2 2 | 2020-12-23 07:17:05 |
| 8280 | 2005-07-29 01:45:51.000 | 1208 1208 | 195 195 | 2005-08-05 22:51:51.000 | 2 2 | 2020-12-23 07:17:19 |
| 8479 | 2005-07-29 08:42:04.000 | 1990 1990 | 195 195 | 2005-08-01 03:10:04.000 | 1 1 | 2020-12-23 07:17:22 |
| 9188 | 2005-07-30 12:19:54.000 | 727 727 | 195 195 | 2005-08-06 09:12:54.000 | 2 2 | 2020-12-23 07:17:32 |
| 9870 | 2005-07-31 13:22:51.000 | 442 442 | 195 195 | 2005-08-05 16:04:51.000 | 1 1 | 2020-12-23 07:17:42 |
| 9994 | 2005-07-31 17:30:31.000 | 2155 2155 | 195 195 | 2005-08-01 11:35:31.000 | 1 1 | 2020-12-23 07:17:44 |
| 10911 | 2005-08-02 01:58:36.000 | 769 769 | 195 195 | 2005-08-08 07:37:36.000 | 2 2 | 2020-12-23 07:17:56 |
| 11201 | 2005-08-02 11:49:16.000 | 1501 1501 | 195 195 | 2005-08-11 08:39:16.000 | 1 1 | 2020-12-23 07:18:00 |
| 11787 | 2005-08-17 10:59:00.000 | 1980 1980 | 195 195 | 2005-08-19 05:56:00.000 | 1 1 | 2020-12-23 07:18:08 |
| 12099 | 2005-08-17 22:38:54.000 | 1743 1743 | 195 195 | 2005-08-18 21:29:54.000 | 2 2 | 2020-12-23 07:18:13 |
| 12941 | 2005-08-19 05:39:26.000 | 2951 2951 | 195 195 | 2005-08-22 09:50:26.000 | 2 2 | 2020-12-23 07:18:24 |
| 13741 | 2005-08-20 10:48:47.000 | 3887 3887 | 195 195 | 2005-08-21 11:19:47.000 | 1 1 | 2020-12-23 07:18:37 |
| 14751 | 2005-08-21 23:11:23.000 | 1156 1156 | 195 195 | 2005-08-30 20:01:23.000 | 2 2 | 2020-12-23 07:18:51 |
| 16040 | 2005-08-23 22:19:33.000 | 3524 3524 | 195 195 | 2005-09-02 02:19:33.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) ;