rental
23 rows where customer_id = 409
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 |
|---|---|---|---|---|---|---|
| 310 | 2005-05-26 22:41:07.000 | 593 593 | 409 409 | 2005-06-02 04:09:07.000 | 1 1 | 2020-12-23 07:15:24 |
| 1226 | 2005-06-15 03:46:10.000 | 2290 2290 | 409 409 | 2005-06-23 02:00:10.000 | 1 1 | 2020-12-23 07:15:36 |
| 2310 | 2005-06-18 08:45:59.000 | 2590 2590 | 409 409 | 2005-06-26 05:06:59.000 | 2 2 | 2020-12-23 07:15:51 |
| 3866 | 2005-07-06 17:47:20.000 | 194 194 | 409 409 | 2005-07-15 18:12:20.000 | 1 1 | 2020-12-23 07:16:13 |
| 4550 | 2005-07-08 04:34:00.000 | 615 615 | 409 409 | 2005-07-14 23:45:00.000 | 2 2 | 2020-12-23 07:16:24 |
| 5175 | 2005-07-09 09:34:28.000 | 1003 1003 | 409 409 | 2005-07-15 15:19:28.000 | 2 2 | 2020-12-23 07:16:33 |
| 5306 | 2005-07-09 15:56:45.000 | 2221 2221 | 409 409 | 2005-07-15 19:02:45.000 | 2 2 | 2020-12-23 07:16:35 |
| 5422 | 2005-07-09 20:55:47.000 | 436 436 | 409 409 | 2005-07-15 15:15:47.000 | 2 2 | 2020-12-23 07:16:37 |
| 5848 | 2005-07-10 17:28:14.000 | 4549 4549 | 409 409 | 2005-07-14 11:54:14.000 | 1 1 | 2020-12-23 07:16:43 |
| 5955 | 2005-07-10 23:22:10.000 | 834 834 | 409 409 | 2005-07-17 17:55:10.000 | 2 2 | 2020-12-23 07:16:45 |
| 6026 | 2005-07-11 02:21:43.000 | 3936 3936 | 409 409 | 2005-07-13 03:49:43.000 | 1 1 | 2020-12-23 07:16:45 |
| 6596 | 2005-07-12 07:32:59.000 | 890 890 | 409 409 | 2005-07-13 02:47:59.000 | 1 1 | 2020-12-23 07:16:54 |
| 7673 | 2005-07-28 02:53:53.000 | 2368 2368 | 409 409 | 2005-08-06 00:07:53.000 | 1 1 | 2020-12-23 07:17:10 |
| 7940 | 2005-07-28 12:46:47.000 | 901 901 | 409 409 | 2005-07-29 06:46:47.000 | 2 2 | 2020-12-23 07:17:13 |
| 8037 | 2005-07-28 16:31:20.000 | 3973 3973 | 409 409 | 2005-07-31 12:18:20.000 | 2 2 | 2020-12-23 07:17:15 |
| 8265 | 2005-07-29 01:20:15.000 | 2389 2389 | 409 409 | 2005-08-06 19:32:15.000 | 2 2 | 2020-12-23 07:17:18 |
| 8726 | 2005-07-29 18:09:22.000 | 897 897 | 409 409 | 2005-08-06 16:24:22.000 | 1 1 | 2020-12-23 07:17:25 |
| 9267 | 2005-07-30 14:59:05.000 | 645 645 | 409 409 | 2005-08-04 10:17:05.000 | 1 1 | 2020-12-23 07:17:33 |
| 12830 | 2005-08-19 01:40:25.000 | 4080 4080 | 409 409 | 2005-08-20 23:49:25.000 | 2 2 | 2020-12-23 07:18:23 |
| 13392 | 2005-08-19 22:03:22.000 | 692 692 | 409 409 | 2005-08-28 19:27:22.000 | 1 1 | 2020-12-23 07:18:31 |
| 13632 | 2005-08-20 07:10:52.000 | 4008 4008 | 409 409 | 2005-08-29 10:19:52.000 | 2 2 | 2020-12-23 07:18:35 |
| 14103 | 2005-08-21 00:37:00.000 | 1438 1438 | 409 409 | 2005-08-25 22:09:00.000 | 2 2 | 2020-12-23 07:18:42 |
| 14697 | 2005-08-21 20:49:21.000 | 48 48 | 409 409 | 2005-08-26 01:39:21.000 | 2 2 | 2020-12-23 07:18:50 |
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) ;