rental
20 rows where customer_id = 355
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 |
|---|---|---|---|---|---|---|
| 1110 | 2005-05-31 15:22:51.000 | 2085 2085 | 355 355 | 2005-06-07 14:32:51.000 | 1 1 | 2020-12-23 07:15:34 |
| 1488 | 2005-06-15 21:39:54.000 | 1081 1081 | 355 355 | 2005-06-16 20:33:54.000 | 1 1 | 2020-12-23 07:15:39 |
| 1612 | 2005-06-16 06:52:05.000 | 3025 3025 | 355 355 | 2005-06-19 01:51:05.000 | 1 1 | 2020-12-23 07:15:41 |
| 3567 | 2005-07-06 03:09:36.000 | 27 27 | 355 355 | 2005-07-12 02:15:36.000 | 1 1 | 2020-12-23 07:16:09 |
| 3730 | 2005-07-06 11:31:24.000 | 1665 1665 | 355 355 | 2005-07-15 06:53:24.000 | 1 1 | 2020-12-23 07:16:11 |
| 5210 | 2005-07-09 11:24:19.000 | 4514 4514 | 355 355 | 2005-07-11 06:27:19.000 | 1 1 | 2020-12-23 07:16:34 |
| 5564 | 2005-07-10 03:23:05.000 | 196 196 | 355 355 | 2005-07-16 07:46:05.000 | 2 2 | 2020-12-23 07:16:39 |
| 6127 | 2005-07-11 08:06:59.000 | 285 285 | 355 355 | 2005-07-12 09:01:59.000 | 1 1 | 2020-12-23 07:16:47 |
| 6262 | 2005-07-11 15:33:24.000 | 4136 4136 | 355 355 | 2005-07-17 12:40:24.000 | 1 1 | 2020-12-23 07:16:49 |
| 6437 | 2005-07-12 00:20:29.000 | 4539 4539 | 355 355 | 2005-07-12 22:26:29.000 | 1 1 | 2020-12-23 07:16:51 |
| 6669 | 2005-07-12 11:39:55.000 | 1420 1420 | 355 355 | 2005-07-20 05:56:55.000 | 1 1 | 2020-12-23 07:16:55 |
| 7108 | 2005-07-27 05:28:32.000 | 2720 2720 | 355 355 | 2005-07-31 07:52:32.000 | 1 1 | 2020-12-23 07:17:01 |
| 7477 | 2005-07-27 19:11:03.000 | 2692 2692 | 355 355 | 2005-08-02 19:25:03.000 | 1 1 | 2020-12-23 07:17:07 |
| 8418 | 2005-07-29 06:54:21.000 | 3081 3081 | 355 355 | 2005-08-05 06:50:21.000 | 2 2 | 2020-12-23 07:17:21 |
| 10498 | 2005-08-01 10:56:48.000 | 2672 2672 | 355 355 | 2005-08-03 15:46:48.000 | 2 2 | 2020-12-23 07:17:51 |
| 11471 | 2005-08-02 21:49:03.000 | 3378 3378 | 355 355 | 2005-08-08 00:17:03.000 | 1 1 | 2020-12-23 07:18:04 |
| 13821 | 2005-08-20 13:33:47.000 | 2402 2402 | 355 355 | 2005-08-25 18:09:47.000 | 1 1 | 2020-12-23 07:18:38 |
| 14760 | 2006-02-14 15:16:03.000 | 1367 1367 | 355 355 | 1 1 | 2020-12-23 07:18:51 | |
| 15367 | 2005-08-22 21:47:53.000 | 160 160 | 355 355 | 2005-08-27 17:54:53.000 | 2 2 | 2020-12-23 07:19:00 |
| 15531 | 2005-08-23 03:52:36.000 | 2410 2410 | 355 355 | 2005-08-25 23:21:36.000 | 1 1 | 2020-12-23 07:19:02 |
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) ;