rental
25 rows where customer_id = 343
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 |
|---|---|---|---|---|---|---|
| 102 | 2005-05-25 17:22:10.000 | 373 373 | 343 343 | 2005-05-31 19:47:10.000 | 1 1 | 2020-12-23 07:15:21 |
| 455 | 2005-05-27 19:43:29.000 | 3344 3344 | 343 343 | 2005-06-04 23:40:29.000 | 2 2 | 2020-12-23 07:15:26 |
| 1547 | 2005-06-16 01:42:24.000 | 2909 2909 | 343 343 | 2005-06-19 01:13:24.000 | 1 1 | 2020-12-23 07:15:40 |
| 1564 | 2005-06-16 02:47:07.000 | 145 145 | 343 343 | 2005-06-24 03:12:07.000 | 1 1 | 2020-12-23 07:15:40 |
| 1879 | 2005-06-17 02:57:34.000 | 3983 3983 | 343 343 | 2005-06-19 00:00:34.000 | 1 1 | 2020-12-23 07:15:45 |
| 1922 | 2005-06-17 06:04:25.000 | 2484 2484 | 343 343 | 2005-06-18 09:15:25.000 | 2 2 | 2020-12-23 07:15:46 |
| 2461 | 2005-06-18 19:58:12.000 | 78 78 | 343 343 | 2005-06-28 01:35:12.000 | 2 2 | 2020-12-23 07:15:53 |
| 2980 | 2005-06-20 08:35:03.000 | 310 310 | 343 343 | 2005-06-29 07:57:03.000 | 2 2 | 2020-12-23 07:16:00 |
| 3407 | 2005-06-21 16:14:02.000 | 3919 3919 | 343 343 | 2005-06-24 15:38:02.000 | 2 2 | 2020-12-23 07:16:07 |
| 3978 | 2005-07-06 23:04:33.000 | 4341 4341 | 343 343 | 2005-07-10 17:45:33.000 | 2 2 | 2020-12-23 07:16:15 |
| 4472 | 2005-07-08 00:22:06.000 | 2089 2089 | 343 343 | 2005-07-16 20:16:06.000 | 1 1 | 2020-12-23 07:16:23 |
| 5097 | 2005-07-09 06:09:51.000 | 3252 3252 | 343 343 | 2005-07-10 03:55:51.000 | 2 2 | 2020-12-23 07:16:32 |
| 5337 | 2005-07-09 17:03:50.000 | 4168 4168 | 343 343 | 2005-07-16 22:25:50.000 | 2 2 | 2020-12-23 07:16:35 |
| 7069 | 2005-07-27 03:59:35.000 | 2073 2073 | 343 343 | 2005-08-05 03:33:35.000 | 1 1 | 2020-12-23 07:17:01 |
| 8012 | 2005-07-28 15:29:00.000 | 1513 1513 | 343 343 | 2005-08-05 12:28:00.000 | 2 2 | 2020-12-23 07:17:14 |
| 8088 | 2005-07-28 18:23:49.000 | 2590 2590 | 343 343 | 2005-08-06 23:25:49.000 | 2 2 | 2020-12-23 07:17:16 |
| 9458 | 2005-07-30 22:24:34.000 | 3105 3105 | 343 343 | 2005-08-04 21:26:34.000 | 2 2 | 2020-12-23 07:17:36 |
| 9739 | 2005-07-31 09:08:03.000 | 1328 1328 | 343 343 | 2005-08-04 13:57:03.000 | 1 1 | 2020-12-23 07:17:40 |
| 10822 | 2005-08-01 22:54:28.000 | 3895 3895 | 343 343 | 2005-08-02 17:19:28.000 | 1 1 | 2020-12-23 07:17:55 |
| 11212 | 2005-08-02 12:18:29.000 | 4007 4007 | 343 343 | 2005-08-05 16:05:29.000 | 2 2 | 2020-12-23 07:18:00 |
| 11570 | 2005-08-17 01:34:32.000 | 2466 2466 | 343 343 | 2005-08-24 05:47:32.000 | 1 1 | 2020-12-23 07:18:06 |
| 13279 | 2005-08-19 18:02:18.000 | 2472 2472 | 343 343 | 2005-08-24 22:15:18.000 | 2 2 | 2020-12-23 07:18:29 |
| 13522 | 2005-08-20 02:44:06.000 | 2940 2940 | 343 343 | 2005-08-28 05:30:06.000 | 1 1 | 2020-12-23 07:18:33 |
| 13866 | 2005-08-20 15:05:29.000 | 3432 3432 | 343 343 | 2005-08-23 11:27:29.000 | 2 2 | 2020-12-23 07:18:38 |
| 15973 | 2005-08-23 20:04:41.000 | 2766 2766 | 343 343 | 2005-09-01 20:08:41.000 | 2 2 | 2020-12-23 07:19:09 |
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) ;