rental
27 rows where customer_id = 421
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 |
|---|---|---|---|---|---|---|
| 507 | 2005-05-28 02:31:19.000 | 3621 3621 | 421 421 | 2005-06-02 05:07:19.000 | 2 2 | 2020-12-23 07:15:26 |
| 931 | 2005-05-30 12:53:01.000 | 3384 3384 | 421 421 | 2005-05-31 14:28:01.000 | 1 1 | 2020-12-23 07:15:32 |
| 1693 | 2005-06-16 12:39:51.000 | 2386 2386 | 421 421 | 2005-06-19 16:19:51.000 | 2 2 | 2020-12-23 07:15:42 |
| 2407 | 2005-06-18 16:50:41.000 | 2547 2547 | 421 421 | 2005-06-24 15:29:41.000 | 2 2 | 2020-12-23 07:15:53 |
| 3170 | 2005-06-20 22:02:54.000 | 1306 1306 | 421 421 | 2005-06-29 00:41:54.000 | 2 2 | 2020-12-23 07:16:03 |
| 3491 | 2005-07-05 23:41:08.000 | 1835 1835 | 421 421 | 2005-07-13 21:53:08.000 | 1 1 | 2020-12-23 07:16:08 |
| 3703 | 2005-07-06 10:15:26.000 | 4276 4276 | 421 421 | 2005-07-13 13:00:26.000 | 1 1 | 2020-12-23 07:16:11 |
| 3988 | 2005-07-06 23:30:42.000 | 2981 2981 | 421 421 | 2005-07-13 03:06:42.000 | 2 2 | 2020-12-23 07:16:15 |
| 4456 | 2005-07-07 23:45:21.000 | 3395 3395 | 421 421 | 2005-07-13 23:03:21.000 | 2 2 | 2020-12-23 07:16:22 |
| 6220 | 2005-07-11 13:22:06.000 | 1717 1717 | 421 421 | 2005-07-12 17:46:06.000 | 2 2 | 2020-12-23 07:16:48 |
| 6960 | 2005-07-27 00:08:33.000 | 192 192 | 421 421 | 2005-08-03 20:58:33.000 | 2 2 | 2020-12-23 07:16:59 |
| 7449 | 2005-07-27 18:17:41.000 | 2084 2084 | 421 421 | 2005-08-01 18:52:41.000 | 1 1 | 2020-12-23 07:17:06 |
| 8025 | 2005-07-28 16:03:27.000 | 2932 2932 | 421 421 | 2005-08-03 21:58:27.000 | 2 2 | 2020-12-23 07:17:15 |
| 8268 | 2005-07-29 01:23:23.000 | 4239 4239 | 421 421 | 2005-08-05 01:36:23.000 | 1 1 | 2020-12-23 07:17:18 |
| 8725 | 2005-07-29 18:08:42.000 | 2385 2385 | 421 421 | 2005-08-04 16:01:42.000 | 2 2 | 2020-12-23 07:17:25 |
| 9377 | 2005-07-30 19:12:18.000 | 4164 4164 | 421 421 | 2005-08-05 19:38:18.000 | 1 1 | 2020-12-23 07:17:35 |
| 9875 | 2005-07-31 13:37:41.000 | 2878 2878 | 421 421 | 2005-08-03 15:17:41.000 | 2 2 | 2020-12-23 07:17:42 |
| 10200 | 2005-08-01 00:39:05.000 | 580 580 | 421 421 | 2005-08-05 01:07:05.000 | 1 1 | 2020-12-23 07:17:46 |
| 11089 | 2005-08-02 07:52:20.000 | 825 825 | 421 421 | 2005-08-07 07:24:20.000 | 1 1 | 2020-12-23 07:17:59 |
| 11263 | 2005-08-02 14:02:19.000 | 1189 1189 | 421 421 | 2005-08-07 14:03:19.000 | 2 2 | 2020-12-23 07:18:01 |
| 11523 | 2005-08-17 00:10:10.000 | 1329 1329 | 421 421 | 2005-08-24 22:39:10.000 | 1 1 | 2020-12-23 07:18:05 |
| 12279 | 2005-08-18 04:47:30.000 | 4159 4159 | 421 421 | 2005-08-19 09:47:30.000 | 2 2 | 2020-12-23 07:18:15 |
| 13461 | 2005-08-20 00:49:04.000 | 2621 2621 | 421 421 | 2005-08-28 02:49:04.000 | 2 2 | 2020-12-23 07:18:32 |
| 13872 | 2005-08-20 15:10:30.000 | 2416 2416 | 421 421 | 2005-08-24 10:14:30.000 | 2 2 | 2020-12-23 07:18:39 |
| 14742 | 2005-08-21 22:39:01.000 | 2988 2988 | 421 421 | 2005-08-26 00:17:01.000 | 1 1 | 2020-12-23 07:18:51 |
| 14887 | 2005-08-22 04:04:31.000 | 56 56 | 421 421 | 2005-08-31 02:30:31.000 | 1 1 | 2020-12-23 07:18:53 |
| 15710 | 2006-02-14 15:16:03.000 | 1020 1020 | 421 421 | 1 1 | 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) ;