rental
25 rows where customer_id = 546
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 |
|---|---|---|---|---|---|---|
| 197 | 2005-05-26 06:59:21.000 | 4212 4212 | 546 546 | 2005-06-03 05:04:21.000 | 2 2 | 2020-12-23 07:15:22 |
| 482 | 2005-05-27 22:53:02.000 | 4178 4178 | 546 546 | 2005-06-01 22:53:02.000 | 2 2 | 2020-12-23 07:15:26 |
| 1181 | 2005-06-15 00:42:17.000 | 2973 2973 | 546 546 | 2005-06-19 03:36:17.000 | 2 2 | 2020-12-23 07:15:35 |
| 1403 | 2005-06-15 16:31:59.000 | 3380 3380 | 546 546 | 2005-06-22 14:23:59.000 | 2 2 | 2020-12-23 07:15:38 |
| 1787 | 2005-06-16 19:30:59.000 | 3823 3823 | 546 546 | 2005-06-21 18:25:59.000 | 2 2 | 2020-12-23 07:15:44 |
| 2361 | 2005-06-18 13:19:05.000 | 3547 3547 | 546 546 | 2005-06-23 07:59:05.000 | 1 1 | 2020-12-23 07:15:52 |
| 3738 | 2005-07-06 11:50:57.000 | 578 578 | 546 546 | 2005-07-09 08:07:57.000 | 1 1 | 2020-12-23 07:16:11 |
| 4664 | 2005-07-08 10:01:28.000 | 1318 1318 | 546 546 | 2005-07-12 10:37:28.000 | 2 2 | 2020-12-23 07:16:26 |
| 4734 | 2005-07-08 13:12:12.000 | 1928 1928 | 546 546 | 2005-07-10 09:01:12.000 | 2 2 | 2020-12-23 07:16:27 |
| 5629 | 2005-07-10 06:02:25.000 | 400 400 | 546 546 | 2005-07-16 07:33:25.000 | 1 1 | 2020-12-23 07:16:40 |
| 6758 | 2005-07-12 15:13:49.000 | 4098 4098 | 546 546 | 2005-07-20 09:31:49.000 | 2 2 | 2020-12-23 07:16:56 |
| 6786 | 2005-07-12 16:32:33.000 | 2011 2011 | 546 546 | 2005-07-16 12:42:33.000 | 2 2 | 2020-12-23 07:16:56 |
| 6910 | 2005-07-12 22:11:21.000 | 1290 1290 | 546 546 | 2005-07-21 02:35:21.000 | 1 1 | 2020-12-23 07:16:58 |
| 8532 | 2005-07-29 10:26:56.000 | 3045 3045 | 546 546 | 2005-08-02 13:23:56.000 | 2 2 | 2020-12-23 07:17:22 |
| 9087 | 2005-07-30 08:19:47.000 | 4048 4048 | 546 546 | 2005-08-02 07:15:47.000 | 1 1 | 2020-12-23 07:17:30 |
| 9626 | 2005-07-31 04:37:41.000 | 2216 2216 | 546 546 | 2005-08-08 04:00:41.000 | 1 1 | 2020-12-23 07:17:38 |
| 10370 | 2005-08-01 06:18:04.000 | 4358 4358 | 546 546 | 2005-08-05 01:41:04.000 | 2 2 | 2020-12-23 07:17:49 |
| 11352 | 2005-08-02 17:29:39.000 | 2760 2760 | 546 546 | 2005-08-10 15:31:39.000 | 1 1 | 2020-12-23 07:18:02 |
| 11797 | 2005-08-17 11:17:21.000 | 1142 1142 | 546 546 | 2005-08-18 09:14:21.000 | 2 2 | 2020-12-23 07:18:09 |
| 12591 | 2005-08-18 16:16:41.000 | 723 723 | 546 546 | 2005-08-24 10:29:41.000 | 2 2 | 2020-12-23 07:18:19 |
| 13850 | 2005-08-20 14:43:03.000 | 3030 3030 | 546 546 | 2005-08-27 11:41:03.000 | 2 2 | 2020-12-23 07:18:38 |
| 14797 | 2005-08-22 00:41:24.000 | 1131 1131 | 546 546 | 2005-08-23 18:51:24.000 | 1 1 | 2020-12-23 07:18:52 |
| 14829 | 2005-08-22 01:35:37.000 | 3606 3606 | 546 546 | 2005-08-23 19:55:37.000 | 2 2 | 2020-12-23 07:18:52 |
| 14929 | 2005-08-22 05:32:38.000 | 4195 4195 | 546 546 | 2005-08-28 00:02:38.000 | 1 1 | 2020-12-23 07:18:54 |
| 15565 | 2005-08-23 05:13:09.000 | 71 71 | 546 546 | 2005-08-30 08:58:09.000 | 2 2 | 2020-12-23 07:19:03 |
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) ;