rental
28 rows where customer_id = 322
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 |
|---|---|---|---|---|---|---|
| 166 | 2005-05-26 02:49:11.000 | 3894 3894 | 322 322 | 2005-05-31 01:28:11.000 | 1 1 | 2020-12-23 07:15:22 |
| 269 | 2005-05-26 16:19:46.000 | 3501 3501 | 322 322 | 2005-05-27 15:59:46.000 | 2 2 | 2020-12-23 07:15:23 |
| 1386 | 2005-06-15 15:38:58.000 | 1296 1296 | 322 322 | 2005-06-20 16:28:58.000 | 2 2 | 2020-12-23 07:15:38 |
| 1588 | 2005-06-16 04:53:21.000 | 4472 4472 | 322 322 | 2005-06-25 07:29:21.000 | 2 2 | 2020-12-23 07:15:41 |
| 2481 | 2005-06-18 21:08:30.000 | 800 800 | 322 322 | 2005-06-23 02:35:30.000 | 2 2 | 2020-12-23 07:15:54 |
| 2554 | 2005-06-19 03:05:38.000 | 3916 3916 | 322 322 | 2005-06-25 23:03:38.000 | 1 1 | 2020-12-23 07:15:55 |
| 2983 | 2005-06-20 08:41:42.000 | 1349 1349 | 322 322 | 2005-06-29 04:02:42.000 | 2 2 | 2020-12-23 07:16:00 |
| 3054 | 2005-06-20 13:16:41.000 | 2817 2817 | 322 322 | 2005-06-28 13:45:41.000 | 2 2 | 2020-12-23 07:16:01 |
| 3413 | 2005-06-21 16:57:07.000 | 666 666 | 322 322 | 2005-06-30 12:03:07.000 | 2 2 | 2020-12-23 07:16:07 |
| 3478 | 2005-07-05 23:05:44.000 | 2528 2528 | 322 322 | 2005-07-07 00:14:44.000 | 2 2 | 2020-12-23 07:16:08 |
| 3627 | 2005-07-06 06:19:25.000 | 1087 1087 | 322 322 | 2005-07-11 05:53:25.000 | 1 1 | 2020-12-23 07:16:10 |
| 3646 | 2005-07-06 07:28:59.000 | 3591 3591 | 322 322 | 2005-07-11 05:19:59.000 | 1 1 | 2020-12-23 07:16:10 |
| 6033 | 2005-07-11 02:59:34.000 | 2819 2819 | 322 322 | 2005-07-16 03:48:34.000 | 2 2 | 2020-12-23 07:16:46 |
| 6511 | 2005-07-12 03:39:29.000 | 1350 1350 | 322 322 | 2005-07-17 01:01:29.000 | 2 2 | 2020-12-23 07:16:52 |
| 6673 | 2005-07-12 11:50:56.000 | 1997 1997 | 322 322 | 2005-07-13 14:27:56.000 | 1 1 | 2020-12-23 07:16:55 |
| 6709 | 2005-07-12 13:20:41.000 | 4049 4049 | 322 322 | 2005-07-16 10:37:41.000 | 2 2 | 2020-12-23 07:16:55 |
| 7091 | 2005-07-27 04:44:10.000 | 2593 2593 | 322 322 | 2005-07-31 07:14:10.000 | 1 1 | 2020-12-23 07:17:01 |
| 8142 | 2005-07-28 20:21:54.000 | 1075 1075 | 322 322 | 2005-07-31 18:39:54.000 | 2 2 | 2020-12-23 07:17:17 |
| 9104 | 2005-07-30 08:49:55.000 | 3372 3372 | 322 322 | 2005-08-06 12:23:55.000 | 1 1 | 2020-12-23 07:17:31 |
| 9115 | 2005-07-30 09:13:55.000 | 3750 3750 | 322 322 | 2005-08-04 04:02:55.000 | 2 2 | 2020-12-23 07:17:31 |
| 9252 | 2005-07-30 14:19:59.000 | 2350 2350 | 322 322 | 2005-08-07 15:17:59.000 | 1 1 | 2020-12-23 07:17:33 |
| 11120 | 2005-08-02 08:47:04.000 | 4185 4185 | 322 322 | 2005-08-05 05:33:04.000 | 1 1 | 2020-12-23 07:17:59 |
| 11456 | 2005-08-02 21:14:04.000 | 3638 3638 | 322 322 | 2005-08-07 19:49:04.000 | 2 2 | 2020-12-23 07:18:04 |
| 13180 | 2005-08-19 14:00:38.000 | 3443 3443 | 322 322 | 2005-08-20 09:56:38.000 | 1 1 | 2020-12-23 07:18:28 |
| 13650 | 2005-08-20 07:49:06.000 | 2644 2644 | 322 322 | 2005-08-28 10:11:06.000 | 1 1 | 2020-12-23 07:18:35 |
| 14042 | 2005-08-20 21:45:51.000 | 505 505 | 322 322 | 2005-08-23 19:57:51.000 | 2 2 | 2020-12-23 07:18:41 |
| 15450 | 2005-08-23 00:56:01.000 | 1102 1102 | 322 322 | 2005-08-24 01:00:01.000 | 2 2 | 2020-12-23 07:19:01 |
| 15703 | 2005-08-23 10:23:48.000 | 2883 2883 | 322 322 | 2005-09-01 06:54:48.000 | 2 2 | 2020-12-23 07:19:05 |
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) ;