rental
22 rows where customer_id = 543
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 |
|---|---|---|---|---|---|---|
| 243 | 2005-05-26 13:06:05.000 | 1721 1721 | 543 543 | 2005-06-03 17:28:05.000 | 2 2 | 2020-12-23 07:15:23 |
| 476 | 2005-05-27 22:31:36.000 | 2451 2451 | 543 543 | 2005-06-03 19:12:36.000 | 1 1 | 2020-12-23 07:15:26 |
| 1720 | 2005-06-16 15:00:14.000 | 3500 3500 | 543 543 | 2005-06-21 13:57:14.000 | 2 2 | 2020-12-23 07:15:43 |
| 2426 | 2005-06-18 17:40:44.000 | 474 474 | 543 543 | 2005-06-22 14:30:44.000 | 2 2 | 2020-12-23 07:15:53 |
| 3070 | 2005-06-20 14:15:39.000 | 3860 3860 | 543 543 | 2005-06-25 12:52:39.000 | 2 2 | 2020-12-23 07:16:02 |
| 3128 | 2005-06-20 18:41:47.000 | 189 189 | 543 543 | 2005-06-24 20:54:47.000 | 2 2 | 2020-12-23 07:16:02 |
| 3467 | 2005-06-21 22:19:25.000 | 729 729 | 543 543 | 2005-06-27 00:03:25.000 | 2 2 | 2020-12-23 07:16:07 |
| 4887 | 2005-07-08 19:59:14.000 | 3613 3613 | 543 543 | 2005-07-15 22:53:14.000 | 1 1 | 2020-12-23 07:16:29 |
| 5467 | 2005-07-09 23:05:47.000 | 374 374 | 543 543 | 2005-07-16 17:06:47.000 | 2 2 | 2020-12-23 07:16:37 |
| 6013 | 2005-07-11 02:02:03.000 | 3774 3774 | 543 543 | 2005-07-14 02:07:03.000 | 1 1 | 2020-12-23 07:16:45 |
| 7312 | 2005-07-27 13:03:14.000 | 228 228 | 543 543 | 2005-07-31 07:56:14.000 | 2 2 | 2020-12-23 07:17:04 |
| 8580 | 2005-07-29 12:00:27.000 | 4040 4040 | 543 543 | 2005-08-04 16:39:27.000 | 1 1 | 2020-12-23 07:17:23 |
| 8845 | 2005-07-29 23:06:13.000 | 3036 3036 | 543 543 | 2005-08-02 20:16:13.000 | 1 1 | 2020-12-23 07:17:27 |
| 9505 | 2005-07-31 00:11:19.000 | 4047 4047 | 543 543 | 2005-08-05 18:24:19.000 | 2 2 | 2020-12-23 07:17:36 |
| 9999 | 2005-07-31 17:40:53.000 | 1438 1438 | 543 543 | 2005-08-01 14:25:53.000 | 1 1 | 2020-12-23 07:17:44 |
| 10257 | 2005-08-01 02:49:43.000 | 2403 2403 | 543 543 | 2005-08-04 04:45:43.000 | 2 2 | 2020-12-23 07:17:47 |
| 10520 | 2005-08-01 11:45:58.000 | 4396 4396 | 543 543 | 2005-08-06 17:28:58.000 | 2 2 | 2020-12-23 07:17:51 |
| 11241 | 2005-08-02 13:29:24.000 | 3657 3657 | 543 543 | 2005-08-11 11:36:24.000 | 2 2 | 2020-12-23 07:18:01 |
| 11681 | 2005-08-17 06:13:30.000 | 1260 1260 | 543 543 | 2005-08-26 01:29:30.000 | 2 2 | 2020-12-23 07:18:07 |
| 13187 | 2005-08-19 14:24:48.000 | 1944 1944 | 543 543 | 2005-08-20 19:37:48.000 | 1 1 | 2020-12-23 07:18:28 |
| 15281 | 2005-08-22 19:10:26.000 | 3992 3992 | 543 543 | 2005-08-27 21:55:26.000 | 2 2 | 2020-12-23 07:18:59 |
| 15785 | 2005-08-23 13:46:27.000 | 1758 1758 | 543 543 | 2005-08-27 10:16:27.000 | 2 2 | 2020-12-23 07:19:06 |
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) ;