rental
25 rows where customer_id = 305
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 |
|---|---|---|---|---|---|---|
| 69 | 2005-05-25 10:10:14.000 | 3207 3207 | 305 305 | 2005-05-27 14:02:14.000 | 2 2 | 2020-12-23 07:15:21 |
| 1574 | 2005-06-16 03:39:56.000 | 161 161 | 305 305 | 2005-06-22 05:40:56.000 | 2 2 | 2020-12-23 07:15:40 |
| 1884 | 2005-06-17 03:19:20.000 | 4567 4567 | 305 305 | 2005-06-21 00:19:20.000 | 1 1 | 2020-12-23 07:15:45 |
| 2166 | 2005-06-17 23:51:21.000 | 4343 4343 | 305 305 | 2005-06-27 01:06:21.000 | 2 2 | 2020-12-23 07:15:49 |
| 3387 | 2005-06-21 14:21:49.000 | 2709 2709 | 305 305 | 2005-06-24 16:46:49.000 | 2 2 | 2020-12-23 07:16:06 |
| 4260 | 2005-07-07 14:22:45.000 | 4575 4575 | 305 305 | 2005-07-08 15:10:45.000 | 2 2 | 2020-12-23 07:16:19 |
| 4638 | 2005-07-08 08:57:20.000 | 2240 2240 | 305 305 | 2005-07-10 05:08:20.000 | 2 2 | 2020-12-23 07:16:25 |
| 5041 | 2005-07-09 03:18:51.000 | 2711 2711 | 305 305 | 2005-07-13 03:08:51.000 | 1 1 | 2020-12-23 07:16:31 |
| 5052 | 2005-07-09 03:59:43.000 | 1884 1884 | 305 305 | 2005-07-12 05:48:43.000 | 1 1 | 2020-12-23 07:16:31 |
| 5582 | 2005-07-10 04:08:25.000 | 3341 3341 | 305 305 | 2005-07-13 06:04:25.000 | 1 1 | 2020-12-23 07:16:39 |
| 5745 | 2005-07-10 12:10:11.000 | 41 41 | 305 305 | 2005-07-19 06:56:11.000 | 1 1 | 2020-12-23 07:16:41 |
| 6134 | 2005-07-11 08:28:19.000 | 3225 3225 | 305 305 | 2005-07-18 09:20:19.000 | 2 2 | 2020-12-23 07:16:47 |
| 6619 | 2005-07-12 08:50:48.000 | 4062 4062 | 305 305 | 2005-07-14 11:54:48.000 | 1 1 | 2020-12-23 07:16:54 |
| 8865 | 2005-07-29 23:54:54.000 | 1835 1835 | 305 305 | 2005-07-31 05:10:54.000 | 2 2 | 2020-12-23 07:17:27 |
| 9119 | 2005-07-30 09:25:56.000 | 275 275 | 305 305 | 2005-08-03 03:36:56.000 | 1 1 | 2020-12-23 07:17:31 |
| 10426 | 2005-08-01 08:26:08.000 | 1325 1325 | 305 305 | 2005-08-09 04:09:08.000 | 1 1 | 2020-12-23 07:17:50 |
| 10929 | 2005-08-02 02:35:44.000 | 913 913 | 305 305 | 2005-08-05 03:52:44.000 | 1 1 | 2020-12-23 07:17:57 |
| 10981 | 2005-08-02 04:17:53.000 | 3699 3699 | 305 305 | 2005-08-09 03:45:53.000 | 2 2 | 2020-12-23 07:17:57 |
| 11035 | 2005-08-02 05:55:39.000 | 3776 3776 | 305 305 | 2005-08-08 06:46:39.000 | 2 2 | 2020-12-23 07:17:58 |
| 11809 | 2005-08-17 11:51:39.000 | 1136 1136 | 305 305 | 2005-08-24 17:14:39.000 | 1 1 | 2020-12-23 07:18:09 |
| 12592 | 2005-08-18 16:17:50.000 | 1618 1618 | 305 305 | 2005-08-25 20:20:50.000 | 1 1 | 2020-12-23 07:18:19 |
| 12846 | 2005-08-19 02:03:26.000 | 286 286 | 305 305 | 2005-08-25 07:39:26.000 | 2 2 | 2020-12-23 07:18:23 |
| 13782 | 2005-08-20 12:09:26.000 | 577 577 | 305 305 | 2005-08-23 08:31:26.000 | 2 2 | 2020-12-23 07:18:37 |
| 15417 | 2005-08-22 23:54:04.000 | 1826 1826 | 305 305 | 2005-08-26 22:25:04.000 | 1 1 | 2020-12-23 07:19:01 |
| 15612 | 2005-08-23 06:59:07.000 | 3367 3367 | 305 305 | 2005-09-01 11:26:07.000 | 2 2 | 2020-12-23 07:19:04 |
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) ;