rental
22 rows where customer_id = 18
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 |
|---|---|---|---|---|---|---|
| 50 | 2005-05-25 06:44:53.000 | 1983 1983 | 18 18 | 2005-05-28 11:28:53.000 | 2 2 | 2020-12-23 07:15:20 |
| 116 | 2005-05-25 19:27:51.000 | 4453 4453 | 18 18 | 2005-05-26 16:23:51.000 | 1 1 | 2020-12-23 07:15:21 |
| 692 | 2005-05-29 01:32:10.000 | 800 800 | 18 18 | 2005-06-02 03:54:10.000 | 2 2 | 2020-12-23 07:15:29 |
| 1451 | 2005-06-15 19:30:18.000 | 3560 3560 | 18 18 | 2005-06-19 19:22:18.000 | 2 2 | 2020-12-23 07:15:39 |
| 1783 | 2005-06-16 19:23:23.000 | 50 50 | 18 18 | 2005-06-18 00:57:23.000 | 1 1 | 2020-12-23 07:15:44 |
| 2112 | 2005-06-17 19:52:42.000 | 1629 1629 | 18 18 | 2005-06-25 00:00:42.000 | 2 2 | 2020-12-23 07:15:48 |
| 2990 | 2005-06-20 09:02:51.000 | 4559 4559 | 18 18 | 2005-06-29 13:19:51.000 | 2 2 | 2020-12-23 07:16:01 |
| 4672 | 2005-07-08 10:15:38.000 | 1922 1922 | 18 18 | 2005-07-16 05:06:38.000 | 1 1 | 2020-12-23 07:16:26 |
| 4724 | 2005-07-08 12:46:30.000 | 3375 3375 | 18 18 | 2005-07-14 12:39:30.000 | 1 1 | 2020-12-23 07:16:26 |
| 4923 | 2005-07-08 21:44:39.000 | 932 932 | 18 18 | 2005-07-17 15:50:39.000 | 2 2 | 2020-12-23 07:16:29 |
| 6128 | 2005-07-11 08:15:08.000 | 2050 2050 | 18 18 | 2005-07-13 03:36:08.000 | 1 1 | 2020-12-23 07:16:47 |
| 6846 | 2005-07-12 19:20:45.000 | 1214 1214 | 18 18 | 2005-07-17 00:06:45.000 | 1 1 | 2020-12-23 07:16:57 |
| 8122 | 2005-07-28 19:27:37.000 | 2141 2141 | 18 18 | 2005-07-29 19:48:37.000 | 2 2 | 2020-12-23 07:17:16 |
| 8555 | 2005-07-29 11:18:01.000 | 2784 2784 | 18 18 | 2005-07-30 10:47:01.000 | 2 2 | 2020-12-23 07:17:23 |
| 9036 | 2005-07-30 06:18:38.000 | 790 790 | 18 18 | 2005-07-31 01:22:38.000 | 1 1 | 2020-12-23 07:17:30 |
| 9114 | 2005-07-30 09:13:21.000 | 893 893 | 18 18 | 2005-08-05 06:00:21.000 | 2 2 | 2020-12-23 07:17:31 |
| 10682 | 2005-08-01 17:32:53.000 | 4557 4557 | 18 18 | 2005-08-06 15:49:53.000 | 2 2 | 2020-12-23 07:17:53 |
| 10721 | 2005-08-01 19:05:18.000 | 904 904 | 18 18 | 2005-08-09 20:45:18.000 | 2 2 | 2020-12-23 07:17:54 |
| 11094 | 2005-08-02 08:03:02.000 | 3095 3095 | 18 18 | 2005-08-03 11:34:02.000 | 1 1 | 2020-12-23 07:17:59 |
| 11439 | 2005-08-02 20:22:45.000 | 2897 2897 | 18 18 | 2005-08-04 18:30:45.000 | 1 1 | 2020-12-23 07:18:04 |
| 12333 | 2005-08-18 06:51:39.000 | 4370 4370 | 18 18 | 2005-08-21 01:44:39.000 | 2 2 | 2020-12-23 07:18:16 |
| 13490 | 2005-08-20 01:29:29.000 | 238 238 | 18 18 | 2005-08-21 22:36:29.000 | 2 2 | 2020-12-23 07:18:33 |
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) ;