rental
20 rows where customer_id = 402
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 |
|---|---|---|---|---|---|---|
| 801 | 2005-05-29 17:35:50.000 | 1642 1642 | 402 402 | 2005-06-04 17:05:50.000 | 2 2 | 2020-12-23 07:15:30 |
| 1194 | 2005-06-15 01:25:08.000 | 3774 3774 | 402 402 | 2005-06-21 01:16:08.000 | 2 2 | 2020-12-23 07:15:36 |
| 2490 | 2005-06-18 22:00:50.000 | 1934 1934 | 402 402 | 2005-06-19 23:45:50.000 | 2 2 | 2020-12-23 07:15:54 |
| 2913 | 2005-06-20 03:42:27.000 | 3456 3456 | 402 402 | 2005-06-23 04:47:27.000 | 1 1 | 2020-12-23 07:16:00 |
| 3564 | 2005-07-06 03:02:13.000 | 1096 1096 | 402 402 | 2005-07-13 01:41:13.000 | 2 2 | 2020-12-23 07:16:09 |
| 3612 | 2005-07-06 05:37:26.000 | 2465 2465 | 402 402 | 2005-07-14 01:51:26.000 | 1 1 | 2020-12-23 07:16:10 |
| 3755 | 2005-07-06 12:37:16.000 | 3147 3147 | 402 402 | 2005-07-13 07:22:16.000 | 1 1 | 2020-12-23 07:16:12 |
| 4399 | 2005-07-07 21:20:28.000 | 4515 4515 | 402 402 | 2005-07-12 20:57:28.000 | 2 2 | 2020-12-23 07:16:22 |
| 4604 | 2005-07-08 06:58:43.000 | 4230 4230 | 402 402 | 2005-07-14 06:41:43.000 | 1 1 | 2020-12-23 07:16:25 |
| 5329 | 2005-07-09 16:49:46.000 | 1628 1628 | 402 402 | 2005-07-16 19:05:46.000 | 1 1 | 2020-12-23 07:16:35 |
| 6183 | 2005-07-11 11:14:35.000 | 856 856 | 402 402 | 2005-07-16 15:35:35.000 | 1 1 | 2020-12-23 07:16:47 |
| 6283 | 2005-07-11 16:47:32.000 | 3319 3319 | 402 402 | 2005-07-17 21:46:32.000 | 1 1 | 2020-12-23 07:16:49 |
| 7633 | 2005-07-28 01:03:41.000 | 4171 4171 | 402 402 | 2005-08-01 23:54:41.000 | 2 2 | 2020-12-23 07:17:09 |
| 8521 | 2005-07-29 10:12:45.000 | 2608 2608 | 402 402 | 2005-08-07 04:37:45.000 | 2 2 | 2020-12-23 07:17:22 |
| 9657 | 2005-07-31 06:00:41.000 | 2681 2681 | 402 402 | 2005-08-06 06:51:41.000 | 2 2 | 2020-12-23 07:17:39 |
| 9779 | 2005-07-31 10:08:33.000 | 1280 1280 | 402 402 | 2005-08-03 14:56:33.000 | 1 1 | 2020-12-23 07:17:41 |
| 11045 | 2005-08-02 06:07:54.000 | 2214 2214 | 402 402 | 2005-08-08 00:37:54.000 | 1 1 | 2020-12-23 07:17:58 |
| 11549 | 2005-08-17 01:01:48.000 | 945 945 | 402 402 | 2005-08-19 21:24:48.000 | 2 2 | 2020-12-23 07:18:05 |
| 11920 | 2005-08-17 16:10:19.000 | 4253 4253 | 402 402 | 2005-08-20 13:54:19.000 | 2 2 | 2020-12-23 07:18:10 |
| 15428 | 2005-08-23 00:11:52.000 | 4379 4379 | 402 402 | 2005-08-24 02:35:52.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) ;