rental
25 rows where customer_id = 324
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 |
|---|---|---|---|---|---|---|
| 563 | 2005-05-28 09:10:49.000 | 53 53 | 324 324 | 2005-06-06 11:32:49.000 | 1 1 | 2020-12-23 07:15:27 |
| 1740 | 2005-06-16 16:29:00.000 | 2282 2282 | 324 324 | 2005-06-20 14:07:00.000 | 2 2 | 2020-12-23 07:15:43 |
| 2590 | 2005-06-19 05:31:40.000 | 3572 3572 | 324 324 | 2005-06-20 07:58:40.000 | 2 2 | 2020-12-23 07:15:55 |
| 3947 | 2005-07-06 21:42:21.000 | 4188 4188 | 324 324 | 2005-07-08 19:37:21.000 | 1 1 | 2020-12-23 07:16:15 |
| 4197 | 2005-07-07 11:07:52.000 | 2515 2515 | 324 324 | 2005-07-10 10:19:52.000 | 1 1 | 2020-12-23 07:16:19 |
| 4368 | 2005-07-07 19:55:19.000 | 736 736 | 324 324 | 2005-07-09 00:11:19.000 | 1 1 | 2020-12-23 07:16:21 |
| 5702 | 2005-07-10 10:00:01.000 | 3349 3349 | 324 324 | 2005-07-11 15:29:01.000 | 1 1 | 2020-12-23 07:16:41 |
| 5778 | 2005-07-10 13:41:37.000 | 4435 4435 | 324 324 | 2005-07-14 16:26:37.000 | 1 1 | 2020-12-23 07:16:42 |
| 6034 | 2005-07-11 03:00:50.000 | 1735 1735 | 324 324 | 2005-07-16 06:19:50.000 | 1 1 | 2020-12-23 07:16:46 |
| 6299 | 2005-07-11 17:45:08.000 | 4125 4125 | 324 324 | 2005-07-13 16:36:08.000 | 2 2 | 2020-12-23 07:16:49 |
| 7240 | 2005-07-27 10:21:15.000 | 4565 4565 | 324 324 | 2005-08-03 05:04:15.000 | 1 1 | 2020-12-23 07:17:03 |
| 7263 | 2005-07-27 11:17:22.000 | 725 725 | 324 324 | 2005-08-04 10:59:22.000 | 1 1 | 2020-12-23 07:17:04 |
| 7960 | 2005-07-28 13:47:08.000 | 2718 2718 | 324 324 | 2005-08-03 15:17:08.000 | 1 1 | 2020-12-23 07:17:14 |
| 8698 | 2005-07-29 16:52:17.000 | 2973 2973 | 324 324 | 2005-08-04 13:20:17.000 | 2 2 | 2020-12-23 07:17:25 |
| 9651 | 2005-07-31 05:48:49.000 | 4059 4059 | 324 324 | 2005-08-04 06:53:49.000 | 1 1 | 2020-12-23 07:17:39 |
| 10212 | 2005-08-01 01:01:35.000 | 3728 3728 | 324 324 | 2005-08-02 23:02:35.000 | 1 1 | 2020-12-23 07:17:47 |
| 11617 | 2005-08-17 04:00:40.000 | 1898 1898 | 324 324 | 2005-08-18 00:36:40.000 | 1 1 | 2020-12-23 07:18:06 |
| 11771 | 2005-08-17 10:17:09.000 | 2575 2575 | 324 324 | 2005-08-25 10:58:09.000 | 1 1 | 2020-12-23 07:18:08 |
| 12543 | 2005-08-18 14:23:55.000 | 330 330 | 324 324 | 2005-08-20 12:42:55.000 | 1 1 | 2020-12-23 07:18:19 |
| 13356 | 2005-08-19 21:02:21.000 | 2713 2713 | 324 324 | 2005-08-24 00:31:21.000 | 1 1 | 2020-12-23 07:18:31 |
| 13386 | 2005-08-19 21:43:58.000 | 4476 4476 | 324 324 | 2005-08-24 20:29:58.000 | 2 2 | 2020-12-23 07:18:31 |
| 13965 | 2006-02-14 15:16:03.000 | 670 670 | 324 324 | 2 2 | 2020-12-23 07:18:40 | |
| 14262 | 2005-08-21 06:08:13.000 | 1430 1430 | 324 324 | 2005-08-30 10:55:13.000 | 1 1 | 2020-12-23 07:18:45 |
| 14479 | 2005-08-21 13:35:54.000 | 2235 2235 | 324 324 | 2005-08-29 12:12:54.000 | 2 2 | 2020-12-23 07:18:47 |
| 15263 | 2005-08-22 18:27:33.000 | 184 184 | 324 324 | 2005-08-30 14:05:33.000 | 1 1 | 2020-12-23 07:18:59 |
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) ;