rental
22 rows where customer_id = 367
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 |
|---|---|---|---|---|---|---|
| 939 | 2005-05-30 14:49:34.000 | 1314 1314 | 367 367 | 2005-06-01 19:00:34.000 | 1 1 | 2020-12-23 07:15:32 |
| 1089 | 2005-05-31 11:38:29.000 | 3784 3784 | 367 367 | 2005-06-02 08:06:29.000 | 1 1 | 2020-12-23 07:15:34 |
| 3078 | 2005-06-20 15:09:48.000 | 3642 3642 | 367 367 | 2005-06-24 16:54:48.000 | 1 1 | 2020-12-23 07:16:02 |
| 4251 | 2005-07-07 14:11:55.000 | 3541 3541 | 367 367 | 2005-07-16 14:01:55.000 | 2 2 | 2020-12-23 07:16:19 |
| 5490 | 2005-07-10 00:09:11.000 | 3044 3044 | 367 367 | 2005-07-14 21:23:11.000 | 1 1 | 2020-12-23 07:16:38 |
| 5538 | 2005-07-10 02:39:40.000 | 2119 2119 | 367 367 | 2005-07-12 01:39:40.000 | 2 2 | 2020-12-23 07:16:38 |
| 5839 | 2005-07-10 17:08:30.000 | 252 252 | 367 367 | 2005-07-13 21:21:30.000 | 2 2 | 2020-12-23 07:16:43 |
| 6228 | 2005-07-11 13:58:36.000 | 2281 2281 | 367 367 | 2005-07-17 19:03:36.000 | 2 2 | 2020-12-23 07:16:48 |
| 6716 | 2005-07-12 13:34:58.000 | 2783 2783 | 367 367 | 2005-07-19 15:09:58.000 | 1 1 | 2020-12-23 07:16:55 |
| 6835 | 2005-07-12 18:58:03.000 | 1444 1444 | 367 367 | 2005-07-18 00:41:03.000 | 1 1 | 2020-12-23 07:16:57 |
| 8490 | 2005-07-29 08:59:25.000 | 1943 1943 | 367 367 | 2005-08-05 14:02:25.000 | 2 2 | 2020-12-23 07:17:22 |
| 9030 | 2005-07-30 06:05:38.000 | 2237 2237 | 367 367 | 2005-08-03 00:19:38.000 | 1 1 | 2020-12-23 07:17:30 |
| 9430 | 2005-07-30 21:20:13.000 | 1529 1529 | 367 367 | 2005-08-04 21:45:13.000 | 2 2 | 2020-12-23 07:17:35 |
| 9912 | 2005-07-31 14:49:04.000 | 3119 3119 | 367 367 | 2005-08-03 15:40:04.000 | 1 1 | 2020-12-23 07:17:43 |
| 10344 | 2005-08-01 05:18:23.000 | 3673 3673 | 367 367 | 2005-08-06 05:20:23.000 | 1 1 | 2020-12-23 07:17:48 |
| 12152 | 2005-08-18 00:21:35.000 | 2797 2797 | 367 367 | 2005-08-22 02:51:35.000 | 1 1 | 2020-12-23 07:18:13 |
| 12362 | 2005-08-18 07:48:05.000 | 3131 3131 | 367 367 | 2005-08-20 05:16:05.000 | 2 2 | 2020-12-23 07:18:16 |
| 12373 | 2005-08-18 08:07:25.000 | 777 777 | 367 367 | 2005-08-27 03:41:25.000 | 1 1 | 2020-12-23 07:18:16 |
| 12911 | 2005-08-19 04:24:10.000 | 1770 1770 | 367 367 | 2005-08-26 00:35:10.000 | 2 2 | 2020-12-23 07:18:24 |
| 13235 | 2005-08-19 16:17:53.000 | 3902 3902 | 367 367 | 2005-08-27 14:57:53.000 | 1 1 | 2020-12-23 07:18:29 |
| 14413 | 2005-08-21 11:06:33.000 | 50 50 | 367 367 | 2005-08-29 16:10:33.000 | 1 1 | 2020-12-23 07:18:47 |
| 14481 | 2005-08-21 13:41:14.000 | 4099 4099 | 367 367 | 2005-08-30 07:53:14.000 | 2 2 | 2020-12-23 07:18:48 |
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) ;