rental
20 rows where customer_id = 549
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 |
|---|---|---|---|---|---|---|
| 6 | 2005-05-24 23:08:07.000 | 2792 2792 | 549 549 | 2005-05-27 01:32:07.000 | 1 1 | 2020-12-23 07:15:20 |
| 852 | 2005-05-30 01:36:57.000 | 1622 1622 | 549 549 | 2005-06-01 22:44:57.000 | 1 1 | 2020-12-23 07:15:31 |
| 906 | 2005-05-30 10:30:38.000 | 1862 1862 | 549 549 | 2005-06-07 06:44:38.000 | 2 2 | 2020-12-23 07:15:32 |
| 1086 | 2005-05-31 11:17:37.000 | 2909 2909 | 549 549 | 2005-06-06 13:58:37.000 | 2 2 | 2020-12-23 07:15:34 |
| 2050 | 2005-06-17 15:07:30.000 | 1963 1963 | 549 549 | 2005-06-18 14:43:30.000 | 1 1 | 2020-12-23 07:15:47 |
| 3523 | 2005-07-06 01:01:38.000 | 2171 2171 | 549 549 | 2005-07-10 20:24:38.000 | 2 2 | 2020-12-23 07:16:08 |
| 3892 | 2005-07-06 18:58:58.000 | 778 778 | 549 549 | 2005-07-10 19:29:58.000 | 1 1 | 2020-12-23 07:16:14 |
| 4447 | 2005-07-07 23:15:28.000 | 404 404 | 549 549 | 2005-07-14 22:53:28.000 | 2 2 | 2020-12-23 07:16:22 |
| 7252 | 2005-07-27 10:45:28.000 | 3107 3107 | 549 549 | 2005-08-04 06:24:28.000 | 2 2 | 2020-12-23 07:17:03 |
| 8239 | 2005-07-29 00:31:39.000 | 3951 3951 | 549 549 | 2005-07-29 19:33:39.000 | 1 1 | 2020-12-23 07:17:18 |
| 8316 | 2005-07-29 03:38:49.000 | 4118 4118 | 549 549 | 2005-08-03 07:41:49.000 | 1 1 | 2020-12-23 07:17:19 |
| 9445 | 2005-07-30 21:50:42.000 | 1480 1480 | 549 549 | 2005-08-05 18:34:42.000 | 2 2 | 2020-12-23 07:17:36 |
| 9511 | 2005-07-31 00:25:05.000 | 964 964 | 549 549 | 2005-08-09 02:46:05.000 | 1 1 | 2020-12-23 07:17:37 |
| 9887 | 2005-07-31 14:00:32.000 | 436 436 | 549 549 | 2005-08-05 19:16:32.000 | 1 1 | 2020-12-23 07:17:42 |
| 10281 | 2005-08-01 03:28:33.000 | 1047 1047 | 549 549 | 2005-08-02 05:06:33.000 | 1 1 | 2020-12-23 07:17:47 |
| 11737 | 2005-08-17 08:42:08.000 | 4128 4128 | 549 549 | 2005-08-19 08:14:08.000 | 1 1 | 2020-12-23 07:18:08 |
| 11878 | 2005-08-17 14:23:52.000 | 255 255 | 549 549 | 2005-08-21 14:23:52.000 | 1 1 | 2020-12-23 07:18:10 |
| 12634 | 2005-08-18 17:58:14.000 | 1037 1037 | 549 549 | 2005-08-19 21:08:14.000 | 2 2 | 2020-12-23 07:18:20 |
| 12747 | 2005-08-18 22:28:22.000 | 4075 4075 | 549 549 | 2005-08-22 22:25:22.000 | 2 2 | 2020-12-23 07:18:21 |
| 14434 | 2005-08-21 11:40:46.000 | 2085 2085 | 549 549 | 2005-08-24 05:50:46.000 | 1 1 | 2020-12-23 07:18:47 |
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) ;