rental
39 rows where customer_id = 178
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 |
|---|---|---|---|---|---|---|
| 1292 | 2005-06-15 09:03:52.000 | 4535 4535 | 178 178 | 2005-06-21 07:53:52.000 | 1 1 | 2020-12-23 07:15:37 |
| 1458 | 2005-06-15 20:24:05.000 | 3546 3546 | 178 178 | 2005-06-21 01:22:05.000 | 1 1 | 2020-12-23 07:15:39 |
| 1568 | 2005-06-16 03:14:01.000 | 635 635 | 178 178 | 2005-06-19 21:17:01.000 | 2 2 | 2020-12-23 07:15:40 |
| 1745 | 2005-06-16 16:41:16.000 | 2812 2812 | 178 178 | 2005-06-23 21:02:16.000 | 2 2 | 2020-12-23 07:15:43 |
| 2124 | 2005-06-17 20:49:14.000 | 1273 1273 | 178 178 | 2005-06-23 17:44:14.000 | 1 1 | 2020-12-23 07:15:49 |
| 2293 | 2005-06-18 07:45:03.000 | 3209 3209 | 178 178 | 2005-06-24 08:12:03.000 | 1 1 | 2020-12-23 07:15:51 |
| 2844 | 2005-06-19 22:40:12.000 | 4452 4452 | 178 178 | 2005-06-24 03:58:12.000 | 2 2 | 2020-12-23 07:15:59 |
| 2898 | 2005-06-20 02:38:06.000 | 3106 3106 | 178 178 | 2005-06-29 08:18:06.000 | 2 2 | 2020-12-23 07:15:59 |
| 4915 | 2005-07-08 21:31:22.000 | 2772 2772 | 178 178 | 2005-07-13 16:45:22.000 | 2 2 | 2020-12-23 07:16:29 |
| 5015 | 2005-07-09 01:54:24.000 | 1564 1564 | 178 178 | 2005-07-12 20:07:24.000 | 1 1 | 2020-12-23 07:16:31 |
| 5057 | 2005-07-09 04:20:29.000 | 1076 1076 | 178 178 | 2005-07-14 23:59:29.000 | 1 1 | 2020-12-23 07:16:31 |
| 5094 | 2005-07-09 05:59:47.000 | 4451 4451 | 178 178 | 2005-07-18 05:34:47.000 | 2 2 | 2020-12-23 07:16:32 |
| 5984 | 2005-07-11 00:44:36.000 | 2801 2801 | 178 178 | 2005-07-15 00:04:36.000 | 1 1 | 2020-12-23 07:16:45 |
| 6347 | 2005-07-11 20:18:53.000 | 3160 3160 | 178 178 | 2005-07-16 20:45:53.000 | 1 1 | 2020-12-23 07:16:50 |
| 6554 | 2005-07-12 05:07:26.000 | 2741 2741 | 178 178 | 2005-07-21 06:06:26.000 | 2 2 | 2020-12-23 07:16:53 |
| 6566 | 2005-07-12 05:42:53.000 | 1822 1822 | 178 178 | 2005-07-19 01:23:53.000 | 2 2 | 2020-12-23 07:16:53 |
| 6606 | 2005-07-12 08:03:40.000 | 2805 2805 | 178 178 | 2005-07-13 09:05:40.000 | 1 1 | 2020-12-23 07:16:54 |
| 7959 | 2005-07-28 13:43:20.000 | 1549 1549 | 178 178 | 2005-08-02 12:13:20.000 | 2 2 | 2020-12-23 07:17:14 |
| 8069 | 2005-07-28 17:23:46.000 | 2822 2822 | 178 178 | 2005-07-30 16:19:46.000 | 1 1 | 2020-12-23 07:17:15 |
| 8287 | 2005-07-29 02:03:58.000 | 812 812 | 178 178 | 2005-08-07 02:11:58.000 | 1 1 | 2020-12-23 07:17:19 |
| 8388 | 2005-07-29 05:48:15.000 | 770 770 | 178 178 | 2005-08-05 06:24:15.000 | 2 2 | 2020-12-23 07:17:20 |
| 8696 | 2005-07-29 16:45:18.000 | 2553 2553 | 178 178 | 2005-08-07 18:51:18.000 | 1 1 | 2020-12-23 07:17:25 |
| 9004 | 2005-07-30 05:04:27.000 | 3775 3775 | 178 178 | 2005-07-31 00:49:27.000 | 1 1 | 2020-12-23 07:17:29 |
| 9311 | 2005-07-30 16:58:31.000 | 1432 1432 | 178 178 | 2005-08-07 15:23:31.000 | 1 1 | 2020-12-23 07:17:34 |
| 9879 | 2005-07-31 13:45:32.000 | 1935 1935 | 178 178 | 2005-08-07 17:12:32.000 | 1 1 | 2020-12-23 07:17:42 |
| 10125 | 2005-07-31 21:33:03.000 | 493 493 | 178 178 | 2005-08-01 19:10:03.000 | 1 1 | 2020-12-23 07:17:45 |
| 10562 | 2005-08-01 13:05:52.000 | 1947 1947 | 178 178 | 2005-08-02 17:05:52.000 | 1 1 | 2020-12-23 07:17:52 |
| 10802 | 2005-08-01 22:18:32.000 | 3998 3998 | 178 178 | 2005-08-10 18:41:32.000 | 2 2 | 2020-12-23 07:17:55 |
| 11319 | 2005-08-02 16:10:09.000 | 4069 4069 | 178 178 | 2005-08-09 11:21:09.000 | 2 2 | 2020-12-23 07:18:02 |
| 11884 | 2005-08-17 14:43:23.000 | 797 797 | 178 178 | 2005-08-25 15:38:23.000 | 1 1 | 2020-12-23 07:18:10 |
| 11927 | 2005-08-17 16:25:03.000 | 3134 3134 | 178 178 | 2005-08-23 16:41:03.000 | 1 1 | 2020-12-23 07:18:10 |
| 12049 | 2005-08-17 20:53:27.000 | 2433 2433 | 178 178 | 2005-08-26 19:45:27.000 | 2 2 | 2020-12-23 07:18:12 |
| 12727 | 2005-08-18 21:45:15.000 | 15 15 | 178 178 | 2005-08-24 15:52:15.000 | 1 1 | 2020-12-23 07:18:21 |
| 12897 | 2006-02-14 15:16:03.000 | 1512 1512 | 178 178 | 2 2 | 2020-12-23 07:18:24 | |
| 13127 | 2005-08-19 12:04:03.000 | 2582 2582 | 178 178 | 2005-08-27 13:56:03.000 | 1 1 | 2020-12-23 07:18:27 |
| 14104 | 2005-08-21 00:37:44.000 | 912 912 | 178 178 | 2005-08-21 22:55:44.000 | 2 2 | 2020-12-23 07:18:42 |
| 14257 | 2005-08-21 05:52:57.000 | 3830 3830 | 178 178 | 2005-08-29 03:18:57.000 | 2 2 | 2020-12-23 07:18:44 |
| 14314 | 2005-08-21 07:50:14.000 | 4115 4115 | 178 178 | 2005-08-24 10:47:14.000 | 2 2 | 2020-12-23 07:18:45 |
| 15323 | 2005-08-22 20:22:40.000 | 1153 1153 | 178 178 | 2005-08-26 00:35:40.000 | 1 1 | 2020-12-23 07:19:00 |
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) ;