rental
26 rows where customer_id = 551
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 |
|---|---|---|---|---|---|---|
| 155 | 2005-05-26 01:15:05.000 | 288 288 | 551 551 | 2005-06-01 00:03:05.000 | 1 1 | 2020-12-23 07:15:22 |
| 728 | 2005-05-29 06:12:38.000 | 242 242 | 551 551 | 2005-06-03 07:41:38.000 | 1 1 | 2020-12-23 07:15:29 |
| 795 | 2005-05-29 16:57:39.000 | 609 609 | 551 551 | 2005-06-01 11:33:39.000 | 2 2 | 2020-12-23 07:15:30 |
| 969 | 2005-05-30 19:23:48.000 | 443 443 | 551 551 | 2005-05-31 21:14:48.000 | 1 1 | 2020-12-23 07:15:33 |
| 1005 | 2005-05-31 00:53:25.000 | 4006 4006 | 551 551 | 2005-06-04 01:21:25.000 | 2 2 | 2020-12-23 07:15:33 |
| 2069 | 2005-06-17 16:19:39.000 | 2746 2746 | 551 551 | 2005-06-26 16:48:39.000 | 1 1 | 2020-12-23 07:15:48 |
| 2776 | 2005-06-19 18:16:24.000 | 1726 1726 | 551 551 | 2005-06-26 14:43:24.000 | 2 2 | 2020-12-23 07:15:58 |
| 3996 | 2005-07-06 23:46:43.000 | 2857 2857 | 551 551 | 2005-07-14 22:34:43.000 | 2 2 | 2020-12-23 07:16:15 |
| 5201 | 2005-07-09 10:52:53.000 | 2453 2453 | 551 551 | 2005-07-16 12:41:53.000 | 2 2 | 2020-12-23 07:16:33 |
| 5528 | 2005-07-10 02:09:21.000 | 680 680 | 551 551 | 2005-07-17 06:22:21.000 | 2 2 | 2020-12-23 07:16:38 |
| 6041 | 2005-07-11 03:14:58.000 | 2815 2815 | 551 551 | 2005-07-13 00:48:58.000 | 2 2 | 2020-12-23 07:16:46 |
| 7095 | 2005-07-27 04:51:15.000 | 1008 1008 | 551 551 | 2005-08-05 10:25:15.000 | 2 2 | 2020-12-23 07:17:01 |
| 8986 | 2005-07-30 04:37:20.000 | 3992 3992 | 551 551 | 2005-07-31 23:54:20.000 | 1 1 | 2020-12-23 07:17:29 |
| 9287 | 2005-07-30 15:35:39.000 | 2048 2048 | 551 551 | 2005-08-02 10:15:39.000 | 1 1 | 2020-12-23 07:17:33 |
| 9765 | 2005-07-31 09:44:40.000 | 472 472 | 551 551 | 2005-08-05 10:57:40.000 | 1 1 | 2020-12-23 07:17:40 |
| 11380 | 2005-08-02 18:17:32.000 | 1046 1046 | 551 551 | 2005-08-03 19:26:32.000 | 2 2 | 2020-12-23 07:18:03 |
| 11883 | 2005-08-17 14:41:28.000 | 221 221 | 551 551 | 2005-08-19 09:54:28.000 | 1 1 | 2020-12-23 07:18:10 |
| 12208 | 2005-08-18 02:25:25.000 | 2039 2039 | 551 551 | 2005-08-20 04:53:25.000 | 2 2 | 2020-12-23 07:18:14 |
| 12868 | 2005-08-19 02:47:19.000 | 4054 4054 | 551 551 | 2005-08-20 00:30:19.000 | 2 2 | 2020-12-23 07:18:23 |
| 13439 | 2005-08-19 23:42:16.000 | 3535 3535 | 551 551 | 2005-08-26 21:24:16.000 | 2 2 | 2020-12-23 07:18:32 |
| 14420 | 2005-08-21 11:16:15.000 | 2495 2495 | 551 551 | 2005-08-24 06:06:15.000 | 2 2 | 2020-12-23 07:18:47 |
| 14609 | 2005-08-21 17:57:26.000 | 1206 1206 | 551 551 | 2005-08-25 14:04:26.000 | 2 2 | 2020-12-23 07:18:49 |
| 14633 | 2005-08-21 18:51:10.000 | 2137 2137 | 551 551 | 2005-08-25 13:07:10.000 | 1 1 | 2020-12-23 07:18:49 |
| 14833 | 2005-08-22 01:45:18.000 | 1960 1960 | 551 551 | 2005-08-28 21:24:18.000 | 1 1 | 2020-12-23 07:18:52 |
| 15377 | 2005-08-22 22:22:33.000 | 3405 3405 | 551 551 | 2005-08-29 18:41:33.000 | 1 1 | 2020-12-23 07:19:00 |
| 15390 | 2005-08-22 22:57:25.000 | 462 462 | 551 551 | 2005-08-31 18:06:25.000 | 1 1 | 2020-12-23 07:19:01 |
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) ;