rental
30 rows where customer_id = 356
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 |
|---|---|---|---|---|---|---|
| 1088 | 2005-05-31 11:35:13.000 | 3988 3988 | 356 356 | 2005-06-06 16:01:13.000 | 2 2 | 2020-12-23 07:15:34 |
| 1410 | 2005-06-15 16:59:46.000 | 809 809 | 356 356 | 2005-06-21 16:38:46.000 | 1 1 | 2020-12-23 07:15:38 |
| 2405 | 2005-06-18 16:36:38.000 | 3604 3604 | 356 356 | 2005-06-21 19:15:38.000 | 1 1 | 2020-12-23 07:15:53 |
| 2433 | 2005-06-18 18:10:17.000 | 937 937 | 356 356 | 2005-06-23 14:46:17.000 | 2 2 | 2020-12-23 07:15:53 |
| 3829 | 2005-07-06 15:59:40.000 | 4126 4126 | 356 356 | 2005-07-11 10:29:40.000 | 1 1 | 2020-12-23 07:16:13 |
| 4599 | 2005-07-08 06:48:26.000 | 2098 2098 | 356 356 | 2005-07-11 07:06:26.000 | 1 1 | 2020-12-23 07:16:25 |
| 5513 | 2005-07-10 01:05:41.000 | 2558 2558 | 356 356 | 2005-07-11 02:05:41.000 | 2 2 | 2020-12-23 07:16:38 |
| 6593 | 2005-07-12 07:21:17.000 | 3441 3441 | 356 356 | 2005-07-14 02:35:17.000 | 2 2 | 2020-12-23 07:16:54 |
| 6648 | 2005-07-12 10:46:30.000 | 718 718 | 356 356 | 2005-07-14 16:15:30.000 | 1 1 | 2020-12-23 07:16:54 |
| 7079 | 2005-07-27 04:21:58.000 | 4356 4356 | 356 356 | 2005-08-04 08:08:58.000 | 1 1 | 2020-12-23 07:17:01 |
| 7758 | 2005-07-28 06:23:41.000 | 4333 4333 | 356 356 | 2005-08-03 06:06:41.000 | 2 2 | 2020-12-23 07:17:11 |
| 7902 | 2005-07-28 11:14:19.000 | 3066 3066 | 356 356 | 2005-07-30 09:01:19.000 | 2 2 | 2020-12-23 07:17:13 |
| 8198 | 2005-07-28 23:08:05.000 | 1767 1767 | 356 356 | 2005-08-06 00:43:05.000 | 2 2 | 2020-12-23 07:17:17 |
| 8975 | 2005-07-30 04:10:18.000 | 3288 3288 | 356 356 | 2005-08-07 01:06:18.000 | 2 2 | 2020-12-23 07:17:29 |
| 9037 | 2005-07-30 06:23:14.000 | 3833 3833 | 356 356 | 2005-08-08 06:25:14.000 | 1 1 | 2020-12-23 07:17:30 |
| 9523 | 2005-07-31 00:56:09.000 | 891 891 | 356 356 | 2005-08-05 05:44:09.000 | 2 2 | 2020-12-23 07:17:37 |
| 9883 | 2005-07-31 13:53:37.000 | 4286 4286 | 356 356 | 2005-08-06 15:45:37.000 | 1 1 | 2020-12-23 07:17:42 |
| 10427 | 2005-08-01 08:30:11.000 | 2978 2978 | 356 356 | 2005-08-07 06:18:11.000 | 2 2 | 2020-12-23 07:17:50 |
| 10854 | 2005-08-02 00:02:06.000 | 3295 3295 | 356 356 | 2005-08-02 21:55:06.000 | 2 2 | 2020-12-23 07:17:56 |
| 11535 | 2005-08-17 00:39:54.000 | 1649 1649 | 356 356 | 2005-08-24 20:46:54.000 | 2 2 | 2020-12-23 07:18:05 |
| 11579 | 2005-08-17 01:57:49.000 | 4256 4256 | 356 356 | 2005-08-22 02:42:49.000 | 1 1 | 2020-12-23 07:18:06 |
| 12037 | 2005-08-17 20:21:35.000 | 766 766 | 356 356 | 2005-08-22 17:16:35.000 | 2 2 | 2020-12-23 07:18:12 |
| 12876 | 2005-08-19 03:12:19.000 | 803 803 | 356 356 | 2005-08-20 02:24:19.000 | 2 2 | 2020-12-23 07:18:23 |
| 12913 | 2005-08-19 04:25:39.000 | 3719 3719 | 356 356 | 2005-08-25 07:23:39.000 | 1 1 | 2020-12-23 07:18:24 |
| 13107 | 2005-08-19 11:13:58.000 | 3870 3870 | 356 356 | 2005-08-20 15:03:58.000 | 2 2 | 2020-12-23 07:18:27 |
| 13442 | 2005-08-19 23:50:45.000 | 2432 2432 | 356 356 | 2005-08-27 22:01:45.000 | 2 2 | 2020-12-23 07:18:32 |
| 13703 | 2005-08-20 09:29:35.000 | 2296 2296 | 356 356 | 2005-08-27 08:03:35.000 | 2 2 | 2020-12-23 07:18:36 |
| 15705 | 2005-08-23 10:32:52.000 | 936 936 | 356 356 | 2005-08-29 13:18:52.000 | 2 2 | 2020-12-23 07:19:05 |
| 15754 | 2005-08-23 12:43:42.000 | 2306 2306 | 356 356 | 2005-08-27 17:45:42.000 | 2 2 | 2020-12-23 07:19:06 |
| 15757 | 2005-08-23 12:47:16.000 | 1308 1308 | 356 356 | 2005-08-29 17:19:16.000 | 1 1 | 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) ;