rental
22 rows where customer_id = 143
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 |
|---|---|---|---|---|---|---|
| 221 | 2005-05-26 10:14:09.000 | 3578 3578 | 143 143 | 2005-05-29 05:57:09.000 | 1 1 | 2020-12-23 07:15:23 |
| 312 | 2005-05-26 22:52:19.000 | 2008 2008 | 143 143 | 2005-06-02 18:14:19.000 | 2 2 | 2020-12-23 07:15:24 |
| 1898 | 2005-06-17 04:28:11.000 | 2873 2873 | 143 143 | 2005-06-25 07:04:11.000 | 2 2 | 2020-12-23 07:15:45 |
| 1942 | 2005-06-17 07:43:39.000 | 261 261 | 143 143 | 2005-06-25 02:24:39.000 | 1 1 | 2020-12-23 07:15:46 |
| 2251 | 2005-06-18 05:05:08.000 | 1458 1458 | 143 143 | 2005-06-23 08:34:08.000 | 1 1 | 2020-12-23 07:15:50 |
| 2574 | 2005-06-19 04:23:52.000 | 3320 3320 | 143 143 | 2005-06-20 05:24:52.000 | 1 1 | 2020-12-23 07:15:55 |
| 2588 | 2005-06-19 05:20:31.000 | 3626 3626 | 143 143 | 2005-06-22 04:20:31.000 | 2 2 | 2020-12-23 07:15:55 |
| 4031 | 2005-07-07 02:32:07.000 | 3094 3094 | 143 143 | 2005-07-14 06:01:07.000 | 2 2 | 2020-12-23 07:16:16 |
| 4221 | 2005-07-07 12:18:57.000 | 4567 4567 | 143 143 | 2005-07-12 09:47:57.000 | 2 2 | 2020-12-23 07:16:19 |
| 4585 | 2005-07-08 06:11:58.000 | 1622 1622 | 143 143 | 2005-07-17 01:58:58.000 | 1 1 | 2020-12-23 07:16:24 |
| 6076 | 2005-07-11 05:05:30.000 | 1792 1792 | 143 143 | 2005-07-18 04:22:30.000 | 1 1 | 2020-12-23 07:16:46 |
| 6207 | 2005-07-11 12:34:24.000 | 3226 3226 | 143 143 | 2005-07-14 10:15:24.000 | 2 2 | 2020-12-23 07:16:48 |
| 8312 | 2005-07-29 03:32:38.000 | 3996 3996 | 143 143 | 2005-07-31 02:12:38.000 | 1 1 | 2020-12-23 07:17:19 |
| 8335 | 2005-07-29 04:18:25.000 | 1719 1719 | 143 143 | 2005-07-31 08:12:25.000 | 2 2 | 2020-12-23 07:17:19 |
| 9889 | 2005-07-31 14:02:50.000 | 2842 2842 | 143 143 | 2005-08-05 12:09:50.000 | 2 2 | 2020-12-23 07:17:42 |
| 10118 | 2005-07-31 21:16:31.000 | 1209 1209 | 143 143 | 2005-08-03 02:32:31.000 | 1 1 | 2020-12-23 07:17:45 |
| 11278 | 2005-08-02 14:29:43.000 | 961 961 | 143 143 | 2005-08-07 10:13:43.000 | 1 1 | 2020-12-23 07:18:01 |
| 11651 | 2005-08-17 05:02:25.000 | 3681 3681 | 143 143 | 2005-08-24 08:15:25.000 | 2 2 | 2020-12-23 07:18:07 |
| 12408 | 2005-08-18 09:40:38.000 | 2360 2360 | 143 143 | 2005-08-19 04:45:38.000 | 1 1 | 2020-12-23 07:18:17 |
| 13835 | 2005-08-20 14:06:33.000 | 3738 3738 | 143 143 | 2005-08-26 12:15:33.000 | 2 2 | 2020-12-23 07:18:38 |
| 15250 | 2005-08-22 18:03:11.000 | 2176 2176 | 143 143 | 2005-08-27 12:19:11.000 | 2 2 | 2020-12-23 07:18:58 |
| 16029 | 2005-08-23 21:54:02.000 | 953 953 | 143 143 | 2005-08-29 23:55:02.000 | 1 1 | 2020-12-23 07:19:10 |
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) ;