rental
22 rows where customer_id = 224
This data as json, xlsx, CSV (advanced)
Suggested facets: staff_id, rental_date (date), return_date (date), last_update (date)
| rental_id ▼ | rental_date | inventory_id | customer_id | return_date | staff_id | last_update |
|---|---|---|---|---|---|---|
| 1424 | 2005-06-15 18:08:14.000 | 887 887 | 224 224 | 2005-06-24 23:16:14.000 | 2 2 | 2020-12-23 07:15:39 |
| 2277 | 2005-06-18 06:35:03.000 | 3770 3770 | 224 224 | 2005-06-19 01:26:03.000 | 1 1 | 2020-12-23 07:15:51 |
| 3282 | 2005-06-21 06:18:42.000 | 1676 1676 | 224 224 | 2005-06-28 09:18:42.000 | 1 1 | 2020-12-23 07:16:05 |
| 4118 | 2005-07-07 07:03:30.000 | 355 355 | 224 224 | 2005-07-08 09:20:30.000 | 1 1 | 2020-12-23 07:16:17 |
| 4411 | 2005-07-07 21:54:58.000 | 320 320 | 224 224 | 2005-07-14 16:14:58.000 | 2 2 | 2020-12-23 07:16:22 |
| 4697 | 2005-07-08 11:19:14.000 | 4143 4143 | 224 224 | 2005-07-12 07:14:14.000 | 2 2 | 2020-12-23 07:16:26 |
| 6031 | 2005-07-11 02:42:14.000 | 1530 1530 | 224 224 | 2005-07-14 03:24:14.000 | 2 2 | 2020-12-23 07:16:46 |
| 6999 | 2005-07-27 01:21:19.000 | 12 12 | 224 224 | 2005-07-29 20:33:19.000 | 2 2 | 2020-12-23 07:17:00 |
| 8255 | 2005-07-29 01:02:30.000 | 3715 3715 | 224 224 | 2005-08-01 22:39:30.000 | 1 1 | 2020-12-23 07:17:18 |
| 8439 | 2005-07-29 07:28:43.000 | 182 182 | 224 224 | 2005-08-04 11:22:43.000 | 1 1 | 2020-12-23 07:17:21 |
| 8605 | 2005-07-29 13:13:34.000 | 3805 3805 | 224 224 | 2005-08-07 08:29:34.000 | 1 1 | 2020-12-23 07:17:23 |
| 9181 | 2005-07-30 12:05:58.000 | 3953 3953 | 224 224 | 2005-08-02 06:22:58.000 | 1 1 | 2020-12-23 07:17:32 |
| 11816 | 2005-08-17 12:14:16.000 | 3897 3897 | 224 224 | 2005-08-19 06:15:16.000 | 2 2 | 2020-12-23 07:18:09 |
| 12492 | 2005-08-18 12:49:04.000 | 2839 2839 | 224 224 | 2005-08-26 17:55:04.000 | 1 1 | 2020-12-23 07:18:18 |
| 12969 | 2005-08-19 06:38:59.000 | 191 191 | 224 224 | 2005-08-25 09:09:59.000 | 2 2 | 2020-12-23 07:18:25 |
| 13075 | 2005-08-19 10:10:10.000 | 4125 4125 | 224 224 | 2005-08-21 08:44:10.000 | 2 2 | 2020-12-23 07:18:26 |
| 14099 | 2005-08-21 00:31:03.000 | 2452 2452 | 224 224 | 2005-08-27 03:18:03.000 | 2 2 | 2020-12-23 07:18:42 |
| 14271 | 2005-08-21 06:23:29.000 | 4506 4506 | 224 224 | 2005-08-27 04:49:29.000 | 1 1 | 2020-12-23 07:18:45 |
| 14468 | 2005-08-21 13:07:10.000 | 4168 4168 | 224 224 | 2005-08-30 19:05:10.000 | 2 2 | 2020-12-23 07:18:47 |
| 14880 | 2005-08-22 03:44:36.000 | 3615 3615 | 224 224 | 2005-08-24 05:45:36.000 | 2 2 | 2020-12-23 07:18:53 |
| 15225 | 2005-08-22 17:18:32.000 | 1646 1646 | 224 224 | 2005-08-24 17:25:32.000 | 1 1 | 2020-12-23 07:18:58 |
| 15952 | 2005-08-23 19:11:29.000 | 1314 1314 | 224 224 | 2005-08-28 14:41:29.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) ;