rental
21 rows where customer_id = 152
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 |
|---|---|---|---|---|---|---|
| 359 | 2005-05-27 06:48:33.000 | 1156 1156 | 152 152 | 2005-05-29 03:55:33.000 | 1 1 | 2020-12-23 07:15:24 |
| 745 | 2005-05-29 09:22:57.000 | 581 581 | 152 152 | 2005-06-01 09:10:57.000 | 1 1 | 2020-12-23 07:15:29 |
| 2882 | 2005-06-20 01:26:26.000 | 205 205 | 152 152 | 2005-06-21 19:33:26.000 | 1 1 | 2020-12-23 07:15:59 |
| 3577 | 2005-07-06 03:40:36.000 | 4390 4390 | 152 152 | 2005-07-10 05:54:36.000 | 2 2 | 2020-12-23 07:16:09 |
| 3786 | 2005-07-06 14:00:41.000 | 4508 4508 | 152 152 | 2005-07-13 16:49:41.000 | 1 1 | 2020-12-23 07:16:12 |
| 4974 | 2005-07-09 00:00:36.000 | 1071 1071 | 152 152 | 2005-07-13 21:03:36.000 | 1 1 | 2020-12-23 07:16:30 |
| 6273 | 2005-07-11 16:08:41.000 | 2403 2403 | 152 152 | 2005-07-14 16:41:41.000 | 2 2 | 2020-12-23 07:16:49 |
| 6612 | 2005-07-12 08:28:33.000 | 235 235 | 152 152 | 2005-07-17 06:25:33.000 | 1 1 | 2020-12-23 07:16:54 |
| 9010 | 2005-07-30 05:12:04.000 | 1698 1698 | 152 152 | 2005-08-06 02:54:04.000 | 2 2 | 2020-12-23 07:17:29 |
| 10320 | 2005-08-01 04:39:26.000 | 2298 2298 | 152 152 | 2005-08-08 06:01:26.000 | 1 1 | 2020-12-23 07:17:48 |
| 11638 | 2005-08-17 04:39:09.000 | 3421 3421 | 152 152 | 2005-08-25 06:42:09.000 | 2 2 | 2020-12-23 07:18:07 |
| 11783 | 2005-08-17 10:39:24.000 | 979 979 | 152 152 | 2005-08-21 12:43:24.000 | 2 2 | 2020-12-23 07:18:08 |
| 11848 | 2006-02-14 15:16:03.000 | 3680 3680 | 152 152 | 1 1 | 2020-12-23 07:18:09 | |
| 12697 | 2005-08-18 20:14:56.000 | 2774 2774 | 152 152 | 2005-08-23 21:54:56.000 | 1 1 | 2020-12-23 07:18:21 |
| 12917 | 2005-08-19 04:27:11.000 | 107 107 | 152 152 | 2005-08-20 03:04:11.000 | 2 2 | 2020-12-23 07:18:24 |
| 12960 | 2005-08-19 06:21:52.000 | 3498 3498 | 152 152 | 2005-08-25 04:16:52.000 | 1 1 | 2020-12-23 07:18:25 |
| 13204 | 2005-08-19 15:02:48.000 | 4524 4524 | 152 152 | 2005-08-24 18:07:48.000 | 1 1 | 2020-12-23 07:18:28 |
| 13484 | 2005-08-20 01:16:52.000 | 1533 1533 | 152 152 | 2005-08-22 23:47:52.000 | 2 2 | 2020-12-23 07:18:33 |
| 13986 | 2005-08-20 19:13:23.000 | 3701 3701 | 152 152 | 2005-08-22 20:59:23.000 | 2 2 | 2020-12-23 07:18:40 |
| 14173 | 2005-08-21 03:01:01.000 | 3175 3175 | 152 152 | 2005-08-22 02:40:01.000 | 1 1 | 2020-12-23 07:18:43 |
| 14668 | 2005-08-21 19:51:30.000 | 1450 1450 | 152 152 | 2005-08-29 19:38:30.000 | 2 2 | 2020-12-23 07:18:50 |
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) ;