rental
18 rows where customer_id = 194
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 |
|---|---|---|---|---|---|---|
| 334 | 2005-05-27 03:03:07.000 | 3973 3973 | 194 194 | 2005-05-29 03:54:07.000 | 1 1 | 2020-12-23 07:15:24 |
| 677 | 2005-05-28 23:00:08.000 | 4558 4558 | 194 194 | 2005-06-05 19:11:08.000 | 2 2 | 2020-12-23 07:15:28 |
| 1430 | 2005-06-15 18:24:55.000 | 3412 3412 | 194 194 | 2005-06-16 12:26:55.000 | 1 1 | 2020-12-23 07:15:39 |
| 2245 | 2005-06-18 04:52:59.000 | 1496 1496 | 194 194 | 2005-06-24 05:07:59.000 | 2 2 | 2020-12-23 07:15:50 |
| 2347 | 2005-06-18 12:12:29.000 | 4516 4516 | 194 194 | 2005-06-23 14:03:29.000 | 1 1 | 2020-12-23 07:15:52 |
| 2463 | 2005-06-18 20:01:43.000 | 1186 1186 | 194 194 | 2005-06-25 15:04:43.000 | 2 2 | 2020-12-23 07:15:53 |
| 2807 | 2005-06-19 19:32:53.000 | 2825 2825 | 194 194 | 2005-06-25 00:30:53.000 | 2 2 | 2020-12-23 07:15:58 |
| 4231 | 2005-07-07 12:48:19.000 | 3522 3522 | 194 194 | 2005-07-13 18:45:19.000 | 1 1 | 2020-12-23 07:16:19 |
| 5146 | 2005-07-09 08:14:58.000 | 776 776 | 194 194 | 2005-07-11 07:04:58.000 | 1 1 | 2020-12-23 07:16:33 |
| 5291 | 2005-07-09 15:15:02.000 | 1367 1367 | 194 194 | 2005-07-15 10:22:02.000 | 2 2 | 2020-12-23 07:16:35 |
| 5894 | 2005-07-10 20:09:34.000 | 2264 2264 | 194 194 | 2005-07-17 15:39:34.000 | 1 1 | 2020-12-23 07:16:44 |
| 9064 | 2005-07-30 07:24:55.000 | 1417 1417 | 194 194 | 2005-08-07 08:44:55.000 | 2 2 | 2020-12-23 07:17:30 |
| 11475 | 2005-08-02 21:55:09.000 | 3687 3687 | 194 194 | 2005-08-09 20:28:09.000 | 2 2 | 2020-12-23 07:18:04 |
| 12851 | 2005-08-19 02:12:12.000 | 3311 3311 | 194 194 | 2005-08-25 23:51:12.000 | 1 1 | 2020-12-23 07:18:23 |
| 13515 | 2005-08-20 02:29:47.000 | 3438 3438 | 194 194 | 2005-08-23 08:12:47.000 | 2 2 | 2020-12-23 07:18:33 |
| 13616 | 2005-08-20 06:30:33.000 | 1694 1694 | 194 194 | 2005-08-27 09:29:33.000 | 2 2 | 2020-12-23 07:18:35 |
| 14440 | 2005-08-21 11:59:04.000 | 3495 3495 | 194 194 | 2005-08-23 10:10:04.000 | 1 1 | 2020-12-23 07:18:47 |
| 15937 | 2005-08-23 18:43:22.000 | 2882 2882 | 194 194 | 2005-08-24 22:53:22.000 | 1 1 | 2020-12-23 07:19:08 |
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) ;