rental
22 rows where customer_id = 477
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 |
|---|---|---|---|---|---|---|
| 882 | 2005-05-30 06:16:06.000 | 3841 3841 | 477 477 | 2005-06-02 11:57:06.000 | 1 1 | 2020-12-23 07:15:31 |
| 1714 | 2005-06-16 14:29:59.000 | 535 535 | 477 477 | 2005-06-24 17:27:59.000 | 2 2 | 2020-12-23 07:15:42 |
| 2187 | 2005-06-18 01:17:27.000 | 1385 1385 | 477 477 | 2005-06-20 22:18:27.000 | 1 1 | 2020-12-23 07:15:50 |
| 2306 | 2005-06-18 08:33:23.000 | 208 208 | 477 477 | 2005-06-27 10:01:23.000 | 2 2 | 2020-12-23 07:15:51 |
| 2676 | 2005-06-19 11:54:57.000 | 3938 3938 | 477 477 | 2005-06-24 15:34:57.000 | 2 2 | 2020-12-23 07:15:56 |
| 4237 | 2005-07-07 13:16:55.000 | 3773 3773 | 477 477 | 2005-07-15 16:33:55.000 | 1 1 | 2020-12-23 07:16:19 |
| 4283 | 2005-07-07 15:29:35.000 | 2807 2807 | 477 477 | 2005-07-11 17:12:35.000 | 1 1 | 2020-12-23 07:16:20 |
| 4956 | 2005-07-08 23:17:10.000 | 1512 1512 | 477 477 | 2005-07-18 00:14:10.000 | 1 1 | 2020-12-23 07:16:30 |
| 6265 | 2005-07-11 15:43:51.000 | 3931 3931 | 477 477 | 2005-07-12 12:51:51.000 | 2 2 | 2020-12-23 07:16:49 |
| 7302 | 2005-07-27 12:52:13.000 | 4539 4539 | 477 477 | 2005-07-29 15:13:13.000 | 2 2 | 2020-12-23 07:17:04 |
| 7904 | 2005-07-28 11:25:39.000 | 316 316 | 477 477 | 2005-08-06 08:22:39.000 | 2 2 | 2020-12-23 07:17:13 |
| 8515 | 2005-07-29 09:55:20.000 | 1071 1071 | 477 477 | 2005-08-05 07:08:20.000 | 2 2 | 2020-12-23 07:17:22 |
| 8821 | 2005-07-29 22:18:12.000 | 52 52 | 477 477 | 2005-08-05 22:00:12.000 | 1 1 | 2020-12-23 07:17:27 |
| 8857 | 2005-07-29 23:44:22.000 | 1348 1348 | 477 477 | 2005-07-31 21:32:22.000 | 2 2 | 2020-12-23 07:17:27 |
| 9446 | 2005-07-30 21:53:01.000 | 1880 1880 | 477 477 | 2005-08-06 19:00:01.000 | 2 2 | 2020-12-23 07:17:36 |
| 10500 | 2005-08-01 11:01:01.000 | 469 469 | 477 477 | 2005-08-06 08:59:01.000 | 2 2 | 2020-12-23 07:17:51 |
| 10912 | 2005-08-02 02:00:03.000 | 732 732 | 477 477 | 2005-08-06 05:55:03.000 | 1 1 | 2020-12-23 07:17:56 |
| 12420 | 2005-08-18 10:01:50.000 | 452 452 | 477 477 | 2005-08-22 08:14:50.000 | 1 1 | 2020-12-23 07:18:17 |
| 13002 | 2005-08-19 07:37:58.000 | 3892 3892 | 477 477 | 2005-08-26 11:32:58.000 | 2 2 | 2020-12-23 07:18:25 |
| 14552 | 2005-08-21 15:59:27.000 | 1991 1991 | 477 477 | 2005-08-27 11:46:27.000 | 1 1 | 2020-12-23 07:18:48 |
| 15091 | 2005-08-22 11:34:43.000 | 2092 2092 | 477 477 | 2005-08-23 16:52:43.000 | 2 2 | 2020-12-23 07:18:56 |
| 15929 | 2005-08-23 18:23:30.000 | 1832 1832 | 477 477 | 2005-08-27 17:04:30.000 | 1 1 | 2020-12-23 07:19:08 |
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) ;