rental
14 rows where customer_id = 61
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 |
|---|---|---|---|---|---|---|
| 1157 | 2005-05-31 22:47:45.000 | 1449 1449 | 61 61 | 2005-06-02 18:01:45.000 | 1 1 | 2020-12-23 07:15:35 |
| 7027 | 2005-07-27 02:50:15.000 | 3280 3280 | 61 61 | 2005-08-04 02:58:15.000 | 1 1 | 2020-12-23 07:17:00 |
| 7071 | 2005-07-27 04:01:15.000 | 4361 4361 | 61 61 | 2005-08-03 05:18:15.000 | 2 2 | 2020-12-23 07:17:01 |
| 8029 | 2005-07-28 16:11:21.000 | 4273 4273 | 61 61 | 2005-08-05 13:52:21.000 | 1 1 | 2020-12-23 07:17:15 |
| 8075 | 2005-07-28 17:37:28.000 | 2175 2175 | 61 61 | 2005-07-29 11:56:28.000 | 2 2 | 2020-12-23 07:17:15 |
| 8651 | 2005-07-29 15:02:18.000 | 2095 2095 | 61 61 | 2005-08-07 09:34:18.000 | 2 2 | 2020-12-23 07:17:24 |
| 9597 | 2005-07-31 03:29:07.000 | 3317 3317 | 61 61 | 2005-08-09 03:33:07.000 | 2 2 | 2020-12-23 07:17:38 |
| 10549 | 2005-08-01 12:46:39.000 | 3719 3719 | 61 61 | 2005-08-06 17:17:39.000 | 1 1 | 2020-12-23 07:17:51 |
| 11379 | 2005-08-02 18:16:55.000 | 251 251 | 61 61 | 2005-08-07 18:12:55.000 | 1 1 | 2020-12-23 07:18:03 |
| 12072 | 2005-08-17 21:50:25.000 | 209 209 | 61 61 | 2005-08-25 22:36:25.000 | 2 2 | 2020-12-23 07:18:12 |
| 13450 | 2005-08-20 00:18:15.000 | 135 135 | 61 61 | 2005-08-24 19:36:15.000 | 1 1 | 2020-12-23 07:18:32 |
| 13830 | 2005-08-20 13:57:59.000 | 2874 2874 | 61 61 | 2005-08-25 11:29:59.000 | 1 1 | 2020-12-23 07:18:38 |
| 15089 | 2005-08-22 11:34:06.000 | 3288 3288 | 61 61 | 2005-08-31 12:45:06.000 | 1 1 | 2020-12-23 07:18:56 |
| 15681 | 2005-08-23 09:35:34.000 | 2813 2813 | 61 61 | 2005-08-27 08:33:34.000 | 1 1 | 2020-12-23 07:19:04 |
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) ;