rental
24 rows where customer_id = 227
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 |
|---|---|---|---|---|---|---|
| 111 | 2005-05-25 18:45:19.000 | 3725 3725 | 227 227 | 2005-05-28 17:18:19.000 | 1 1 | 2020-12-23 07:15:21 |
| 1023 | 2005-05-31 03:26:50.000 | 2483 2483 | 227 227 | 2005-06-05 08:19:50.000 | 2 2 | 2020-12-23 07:15:33 |
| 1679 | 2005-06-16 11:11:01.000 | 3959 3959 | 227 227 | 2005-06-23 08:11:01.000 | 1 1 | 2020-12-23 07:15:42 |
| 2155 | 2005-06-17 23:07:29.000 | 3640 3640 | 227 227 | 2005-06-25 03:23:29.000 | 2 2 | 2020-12-23 07:15:49 |
| 2164 | 2005-06-17 23:46:21.000 | 3442 3442 | 227 227 | 2005-06-24 19:10:21.000 | 2 2 | 2020-12-23 07:15:49 |
| 3065 | 2005-06-20 13:53:53.000 | 1687 1687 | 227 227 | 2005-06-24 11:31:53.000 | 1 1 | 2020-12-23 07:16:02 |
| 3576 | 2005-07-06 03:40:01.000 | 324 324 | 227 227 | 2005-07-15 07:22:01.000 | 1 1 | 2020-12-23 07:16:09 |
| 4340 | 2005-07-07 18:41:46.000 | 3919 3919 | 227 227 | 2005-07-16 21:27:46.000 | 1 1 | 2020-12-23 07:16:21 |
| 4459 | 2005-07-07 23:48:52.000 | 3987 3987 | 227 227 | 2005-07-13 19:37:52.000 | 2 2 | 2020-12-23 07:16:22 |
| 4680 | 2005-07-08 10:35:28.000 | 4043 4043 | 227 227 | 2005-07-14 08:42:28.000 | 1 1 | 2020-12-23 07:16:26 |
| 5046 | 2005-07-09 03:34:57.000 | 1639 1639 | 227 227 | 2005-07-17 22:36:57.000 | 2 2 | 2020-12-23 07:16:31 |
| 7132 | 2005-07-27 06:28:34.000 | 3201 3201 | 227 227 | 2005-08-05 06:02:34.000 | 2 2 | 2020-12-23 07:17:02 |
| 8219 | 2005-07-28 23:46:31.000 | 3609 3609 | 227 227 | 2005-08-03 00:11:31.000 | 2 2 | 2020-12-23 07:17:18 |
| 8234 | 2005-07-29 00:19:20.000 | 644 644 | 227 227 | 2005-08-03 19:16:20.000 | 2 2 | 2020-12-23 07:17:18 |
| 8384 | 2005-07-29 05:38:43.000 | 3807 3807 | 227 227 | 2005-08-01 07:31:43.000 | 2 2 | 2020-12-23 07:17:20 |
| 8417 | 2005-07-29 06:53:36.000 | 750 750 | 227 227 | 2005-08-06 09:31:36.000 | 2 2 | 2020-12-23 07:17:21 |
| 8936 | 2005-07-30 02:47:13.000 | 1408 1408 | 227 227 | 2005-08-01 02:25:13.000 | 2 2 | 2020-12-23 07:17:28 |
| 9521 | 2005-07-31 00:52:24.000 | 1423 1423 | 227 227 | 2005-08-06 03:33:24.000 | 2 2 | 2020-12-23 07:17:37 |
| 10999 | 2005-08-02 04:53:13.000 | 2013 2013 | 227 227 | 2005-08-06 04:36:13.000 | 2 2 | 2020-12-23 07:17:58 |
| 11892 | 2005-08-17 15:13:21.000 | 746 746 | 227 227 | 2005-08-21 09:19:21.000 | 2 2 | 2020-12-23 07:18:10 |
| 13374 | 2006-02-14 15:16:03.000 | 2721 2721 | 227 227 | 1 1 | 2020-12-23 07:18:31 | |
| 13379 | 2005-08-19 21:33:39.000 | 1623 1623 | 227 227 | 2005-08-22 21:00:39.000 | 1 1 | 2020-12-23 07:18:31 |
| 15406 | 2005-08-22 23:21:22.000 | 400 400 | 227 227 | 2005-08-28 22:21:22.000 | 1 1 | 2020-12-23 07:19:01 |
| 15976 | 2005-08-23 20:07:08.000 | 835 835 | 227 227 | 2005-08-25 01:47:08.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) ;