rental
24 rows where customer_id = 540
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 |
|---|---|---|---|---|---|---|
| 1263 | 2005-06-15 06:56:39.000 | 4144 4144 | 540 540 | 2005-06-16 11:08:39.000 | 1 1 | 2020-12-23 07:15:36 |
| 1290 | 2005-06-15 08:52:44.000 | 1921 1921 | 540 540 | 2005-06-24 13:36:44.000 | 2 2 | 2020-12-23 07:15:37 |
| 2640 | 2005-06-19 09:26:13.000 | 721 721 | 540 540 | 2005-06-20 14:38:13.000 | 1 1 | 2020-12-23 07:15:56 |
| 2953 | 2005-06-20 06:39:11.000 | 1829 1829 | 540 540 | 2005-06-26 06:19:11.000 | 1 1 | 2020-12-23 07:16:00 |
| 3340 | 2005-06-21 10:37:23.000 | 2962 2962 | 540 540 | 2005-06-26 07:21:23.000 | 2 2 | 2020-12-23 07:16:06 |
| 4628 | 2005-07-08 08:25:52.000 | 1888 1888 | 540 540 | 2005-07-10 11:22:52.000 | 1 1 | 2020-12-23 07:16:25 |
| 4991 | 2005-07-09 00:49:03.000 | 1856 1856 | 540 540 | 2005-07-13 05:02:03.000 | 1 1 | 2020-12-23 07:16:31 |
| 6103 | 2005-07-11 06:59:55.000 | 262 262 | 540 540 | 2005-07-16 09:30:55.000 | 1 1 | 2020-12-23 07:16:46 |
| 6145 | 2005-07-11 09:07:01.000 | 1359 1359 | 540 540 | 2005-07-19 08:21:01.000 | 1 1 | 2020-12-23 07:16:47 |
| 6182 | 2005-07-11 11:11:38.000 | 2562 2562 | 540 540 | 2005-07-17 08:33:38.000 | 2 2 | 2020-12-23 07:16:47 |
| 6748 | 2005-07-12 14:39:27.000 | 3655 3655 | 540 540 | 2005-07-18 13:40:27.000 | 2 2 | 2020-12-23 07:16:56 |
| 6919 | 2005-07-12 22:32:17.000 | 1122 1122 | 540 540 | 2005-07-18 20:09:17.000 | 1 1 | 2020-12-23 07:16:58 |
| 9762 | 2005-07-31 09:32:54.000 | 155 155 | 540 540 | 2005-08-05 04:55:54.000 | 1 1 | 2020-12-23 07:17:40 |
| 9815 | 2005-07-31 11:30:51.000 | 2728 2728 | 540 540 | 2005-08-08 12:52:51.000 | 1 1 | 2020-12-23 07:17:41 |
| 10924 | 2005-08-02 02:20:19.000 | 589 589 | 540 540 | 2005-08-11 05:50:19.000 | 2 2 | 2020-12-23 07:17:57 |
| 11198 | 2005-08-02 11:45:15.000 | 2908 2908 | 540 540 | 2005-08-10 11:42:15.000 | 2 2 | 2020-12-23 07:18:00 |
| 11324 | 2005-08-02 16:31:17.000 | 2900 2900 | 540 540 | 2005-08-08 15:38:17.000 | 2 2 | 2020-12-23 07:18:02 |
| 11432 | 2005-08-02 20:10:01.000 | 959 959 | 540 540 | 2005-08-07 01:28:01.000 | 1 1 | 2020-12-23 07:18:04 |
| 12058 | 2005-08-17 21:07:41.000 | 2438 2438 | 540 540 | 2005-08-26 16:07:41.000 | 1 1 | 2020-12-23 07:18:12 |
| 12201 | 2005-08-18 02:14:06.000 | 3676 3676 | 540 540 | 2005-08-23 04:44:06.000 | 1 1 | 2020-12-23 07:18:14 |
| 12300 | 2005-08-18 05:36:14.000 | 3213 3213 | 540 540 | 2005-08-25 00:20:14.000 | 2 2 | 2020-12-23 07:18:15 |
| 14910 | 2005-08-22 04:50:52.000 | 1266 1266 | 540 540 | 2005-08-25 04:14:52.000 | 1 1 | 2020-12-23 07:18:53 |
| 15079 | 2005-08-22 11:09:56.000 | 4552 4552 | 540 540 | 2005-08-24 15:40:56.000 | 2 2 | 2020-12-23 07:18:56 |
| 15953 | 2005-08-23 19:13:46.000 | 3727 3727 | 540 540 | 2005-08-28 23:05:46.000 | 1 1 | 2020-12-23 07:19:09 |
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) ;