rental
27 rows where customer_id = 286
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 |
|---|---|---|---|---|---|---|
| 81 | 2005-05-25 12:15:19.000 | 2610 2610 | 286 286 | 2005-06-02 14:08:19.000 | 2 2 | 2020-12-23 07:15:21 |
| 1690 | 2005-06-16 12:24:18.000 | 1099 1099 | 286 286 | 2005-06-25 15:00:18.000 | 1 1 | 2020-12-23 07:15:42 |
| 2195 | 2005-06-18 01:44:46.000 | 2247 2247 | 286 286 | 2005-06-25 20:50:46.000 | 1 1 | 2020-12-23 07:15:50 |
| 3592 | 2005-07-06 04:38:50.000 | 1272 1272 | 286 286 | 2005-07-15 06:36:50.000 | 2 2 | 2020-12-23 07:16:09 |
| 3692 | 2005-07-06 09:54:12.000 | 1237 1237 | 286 286 | 2005-07-11 09:42:12.000 | 2 2 | 2020-12-23 07:16:11 |
| 4242 | 2005-07-07 13:39:01.000 | 3626 3626 | 286 286 | 2005-07-12 18:29:01.000 | 1 1 | 2020-12-23 07:16:19 |
| 4461 | 2005-07-07 23:59:43.000 | 3656 3656 | 286 286 | 2005-07-16 19:44:43.000 | 2 2 | 2020-12-23 07:16:23 |
| 4707 | 2005-07-08 11:57:28.000 | 52 52 | 286 286 | 2005-07-10 17:47:28.000 | 1 1 | 2020-12-23 07:16:26 |
| 4894 | 2005-07-08 20:21:31.000 | 1028 1028 | 286 286 | 2005-07-11 01:59:31.000 | 1 1 | 2020-12-23 07:16:29 |
| 5796 | 2005-07-10 14:42:54.000 | 1631 1631 | 286 286 | 2005-07-17 08:47:54.000 | 2 2 | 2020-12-23 07:16:42 |
| 6611 | 2005-07-12 08:20:23.000 | 1604 1604 | 286 286 | 2005-07-16 07:19:23.000 | 1 1 | 2020-12-23 07:16:54 |
| 7254 | 2005-07-27 10:48:50.000 | 2697 2697 | 286 286 | 2005-07-28 10:34:50.000 | 1 1 | 2020-12-23 07:17:03 |
| 7299 | 2005-07-27 12:49:56.000 | 3002 3002 | 286 286 | 2005-08-03 12:25:56.000 | 1 1 | 2020-12-23 07:17:04 |
| 7368 | 2005-07-27 15:06:05.000 | 2265 2265 | 286 286 | 2005-07-31 14:10:05.000 | 2 2 | 2020-12-23 07:17:05 |
| 7422 | 2005-07-27 17:10:42.000 | 3954 3954 | 286 286 | 2005-08-03 19:32:42.000 | 1 1 | 2020-12-23 07:17:06 |
| 7719 | 2005-07-28 04:39:09.000 | 2481 2481 | 286 286 | 2005-08-05 03:15:09.000 | 1 1 | 2020-12-23 07:17:10 |
| 8399 | 2005-07-29 06:20:18.000 | 233 233 | 286 286 | 2005-08-04 01:26:18.000 | 1 1 | 2020-12-23 07:17:20 |
| 9280 | 2005-07-30 15:15:38.000 | 4103 4103 | 286 286 | 2005-08-05 19:20:38.000 | 2 2 | 2020-12-23 07:17:33 |
| 9809 | 2005-07-31 11:19:21.000 | 359 359 | 286 286 | 2005-08-08 12:43:21.000 | 2 2 | 2020-12-23 07:17:41 |
| 10105 | 2005-07-31 20:54:20.000 | 112 112 | 286 286 | 2005-08-09 17:45:20.000 | 1 1 | 2020-12-23 07:17:45 |
| 11670 | 2005-08-17 05:48:59.000 | 4437 4437 | 286 286 | 2005-08-19 08:51:59.000 | 1 1 | 2020-12-23 07:18:07 |
| 12595 | 2005-08-18 16:27:08.000 | 1662 1662 | 286 286 | 2005-08-19 14:53:08.000 | 1 1 | 2020-12-23 07:18:19 |
| 12656 | 2005-08-18 18:58:35.000 | 3981 3981 | 286 286 | 2005-08-21 00:41:35.000 | 1 1 | 2020-12-23 07:18:20 |
| 13635 | 2005-08-20 07:17:35.000 | 669 669 | 286 286 | 2005-08-29 06:27:35.000 | 1 1 | 2020-12-23 07:18:35 |
| 13975 | 2005-08-20 18:58:23.000 | 3821 3821 | 286 286 | 2005-08-25 20:58:23.000 | 1 1 | 2020-12-23 07:18:40 |
| 14905 | 2005-08-22 04:34:22.000 | 4166 4166 | 286 286 | 2005-08-26 04:00:22.000 | 2 2 | 2020-12-23 07:18:53 |
| 15629 | 2005-08-23 07:28:22.000 | 3725 3725 | 286 286 | 2005-08-29 06:29:22.000 | 2 2 | 2020-12-23 07:19:04 |
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) ;