rental
26 rows where customer_id = 593
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 |
|---|---|---|---|---|---|---|
| 790 | 2005-05-29 16:19:29.000 | 2858 2858 | 593 593 | 2005-06-02 17:22:29.000 | 2 2 | 2020-12-23 07:15:30 |
| 991 | 2005-05-30 23:29:22.000 | 2863 2863 | 593 593 | 2005-06-07 23:16:22.000 | 1 1 | 2020-12-23 07:15:33 |
| 2055 | 2005-06-17 15:27:03.000 | 1399 1399 | 593 593 | 2005-06-25 13:44:03.000 | 1 1 | 2020-12-23 07:15:48 |
| 2205 | 2005-06-18 02:14:34.000 | 1245 1245 | 593 593 | 2005-06-25 05:11:34.000 | 1 1 | 2020-12-23 07:15:50 |
| 2441 | 2005-06-18 18:45:11.000 | 3148 3148 | 593 593 | 2005-06-20 00:42:11.000 | 1 1 | 2020-12-23 07:15:53 |
| 2832 | 2005-06-19 21:21:53.000 | 828 828 | 593 593 | 2005-06-28 23:00:53.000 | 1 1 | 2020-12-23 07:15:58 |
| 3542 | 2005-07-06 01:51:42.000 | 4391 4391 | 593 593 | 2005-07-11 03:29:42.000 | 1 1 | 2020-12-23 07:16:09 |
| 4075 | 2005-07-07 04:51:44.000 | 1989 1989 | 593 593 | 2005-07-09 03:07:44.000 | 2 2 | 2020-12-23 07:16:17 |
| 4280 | 2005-07-07 15:09:31.000 | 1115 1115 | 593 593 | 2005-07-13 14:47:31.000 | 1 1 | 2020-12-23 07:16:20 |
| 4623 | 2005-07-08 08:03:22.000 | 4171 4171 | 593 593 | 2005-07-12 09:11:22.000 | 2 2 | 2020-12-23 07:16:25 |
| 4781 | 2005-07-08 16:06:55.000 | 1818 1818 | 593 593 | 2005-07-16 11:22:55.000 | 2 2 | 2020-12-23 07:16:27 |
| 4867 | 2005-07-08 19:10:52.000 | 4090 4090 | 593 593 | 2005-07-09 21:43:52.000 | 2 2 | 2020-12-23 07:16:29 |
| 6386 | 2005-07-11 22:14:57.000 | 633 633 | 593 593 | 2005-07-15 16:41:57.000 | 2 2 | 2020-12-23 07:16:50 |
| 6731 | 2005-07-12 13:58:27.000 | 844 844 | 593 593 | 2005-07-15 10:04:27.000 | 2 2 | 2020-12-23 07:16:56 |
| 7958 | 2005-07-28 13:34:34.000 | 421 421 | 593 593 | 2005-07-29 16:03:34.000 | 1 1 | 2020-12-23 07:17:14 |
| 8497 | 2005-07-29 09:07:03.000 | 1837 1837 | 593 593 | 2005-08-02 09:18:03.000 | 2 2 | 2020-12-23 07:17:22 |
| 9329 | 2005-07-30 17:42:38.000 | 1293 1293 | 593 593 | 2005-08-08 23:17:38.000 | 1 1 | 2020-12-23 07:17:34 |
| 9483 | 2005-07-30 23:31:31.000 | 1136 1136 | 593 593 | 2005-08-09 04:29:31.000 | 2 2 | 2020-12-23 07:17:36 |
| 10368 | 2005-08-01 06:13:38.000 | 3535 3535 | 593 593 | 2005-08-08 04:40:38.000 | 2 2 | 2020-12-23 07:17:49 |
| 10533 | 2005-08-01 12:14:16.000 | 1924 1924 | 593 593 | 2005-08-09 17:13:16.000 | 2 2 | 2020-12-23 07:17:51 |
| 10840 | 2005-08-01 23:38:34.000 | 583 583 | 593 593 | 2005-08-07 02:36:34.000 | 2 2 | 2020-12-23 07:17:56 |
| 10904 | 2005-08-02 01:43:02.000 | 3681 3681 | 593 593 | 2005-08-04 04:34:02.000 | 1 1 | 2020-12-23 07:17:56 |
| 12744 | 2005-08-18 22:22:36.000 | 3815 3815 | 593 593 | 2005-08-24 00:26:36.000 | 1 1 | 2020-12-23 07:18:21 |
| 13524 | 2005-08-20 02:48:43.000 | 4557 4557 | 593 593 | 2005-08-27 03:14:43.000 | 2 2 | 2020-12-23 07:18:33 |
| 14408 | 2005-08-21 10:47:24.000 | 222 222 | 593 593 | 2005-08-27 08:18:24.000 | 1 1 | 2020-12-23 07:18:46 |
| 14653 | 2005-08-21 19:35:59.000 | 491 491 | 593 593 | 2005-08-24 15:31:59.000 | 1 1 | 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) ;