rental
21 rows where customer_id = 174
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 |
|---|---|---|---|---|---|---|
| 41 | 2005-05-25 05:12:29.000 | 1761 1761 | 174 174 | 2005-06-02 00:28:29.000 | 1 1 | 2020-12-23 07:15:20 |
| 1071 | 2005-05-31 09:48:56.000 | 469 469 | 174 174 | 2005-06-02 03:52:56.000 | 2 2 | 2020-12-23 07:15:34 |
| 1566 | 2005-06-16 03:13:20.000 | 3215 3215 | 174 174 | 2005-06-24 01:59:20.000 | 2 2 | 2020-12-23 07:15:40 |
| 1609 | 2005-06-16 06:34:59.000 | 2279 2279 | 174 174 | 2005-06-17 09:41:59.000 | 2 2 | 2020-12-23 07:15:41 |
| 2326 | 2005-06-18 10:14:22.000 | 3829 3829 | 174 174 | 2005-06-24 07:01:22.000 | 2 2 | 2020-12-23 07:15:52 |
| 3446 | 2005-06-21 20:45:51.000 | 1817 1817 | 174 174 | 2005-06-26 17:02:51.000 | 1 1 | 2020-12-23 07:16:07 |
| 4803 | 2005-07-08 16:56:34.000 | 1786 1786 | 174 174 | 2005-07-14 20:16:34.000 | 1 1 | 2020-12-23 07:16:28 |
| 5414 | 2005-07-09 20:29:36.000 | 1201 1201 | 174 174 | 2005-07-13 01:55:36.000 | 2 2 | 2020-12-23 07:16:37 |
| 6909 | 2005-07-12 22:09:30.000 | 769 769 | 174 174 | 2005-07-17 02:05:30.000 | 2 2 | 2020-12-23 07:16:58 |
| 8348 | 2005-07-29 04:49:26.000 | 4533 4533 | 174 174 | 2005-08-05 03:26:26.000 | 2 2 | 2020-12-23 07:17:20 |
| 8754 | 2005-07-29 19:18:30.000 | 1678 1678 | 174 174 | 2005-08-05 18:39:30.000 | 2 2 | 2020-12-23 07:17:26 |
| 9301 | 2005-07-30 16:34:29.000 | 1073 1073 | 174 174 | 2005-07-31 18:41:29.000 | 2 2 | 2020-12-23 07:17:34 |
| 9847 | 2005-07-31 12:33:43.000 | 1137 1137 | 174 174 | 2005-08-04 14:15:43.000 | 2 2 | 2020-12-23 07:17:42 |
| 10363 | 2005-08-01 06:01:52.000 | 320 320 | 174 174 | 2005-08-05 03:56:52.000 | 1 1 | 2020-12-23 07:17:49 |
| 10398 | 2005-08-01 07:11:49.000 | 4306 4306 | 174 174 | 2005-08-04 05:54:49.000 | 1 1 | 2020-12-23 07:17:49 |
| 10559 | 2005-08-01 13:02:58.000 | 2861 2861 | 174 174 | 2005-08-09 10:03:58.000 | 2 2 | 2020-12-23 07:17:52 |
| 11525 | 2005-08-17 00:15:31.000 | 1107 1107 | 174 174 | 2005-08-20 21:14:31.000 | 1 1 | 2020-12-23 07:18:05 |
| 12886 | 2005-08-19 03:38:32.000 | 2157 2157 | 174 174 | 2005-08-26 02:17:32.000 | 1 1 | 2020-12-23 07:18:23 |
| 13185 | 2005-08-19 14:22:30.000 | 241 241 | 174 174 | 2005-08-20 10:13:30.000 | 2 2 | 2020-12-23 07:18:28 |
| 15892 | 2005-08-23 17:01:00.000 | 1365 1365 | 174 174 | 2005-08-28 12:50:00.000 | 1 1 | 2020-12-23 07:19:08 |
| 15975 | 2005-08-23 20:06:23.000 | 2723 2723 | 174 174 | 2005-08-27 19:52:23.000 | 1 1 | 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) ;