rental
24 rows where customer_id = 34
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 |
|---|---|---|---|---|---|---|
| 1900 | 2005-06-17 04:29:58.000 | 1425 1425 | 34 34 | 2005-06-21 05:58:58.000 | 1 1 | 2020-12-23 07:15:45 |
| 2257 | 2005-06-18 05:29:52.000 | 2846 2846 | 34 34 | 2005-06-22 00:19:52.000 | 1 1 | 2020-12-23 07:15:51 |
| 3150 | 2005-06-20 20:35:28.000 | 94 94 | 34 34 | 2005-06-26 01:01:28.000 | 1 1 | 2020-12-23 07:16:03 |
| 3508 | 2005-07-06 00:24:25.000 | 2381 2381 | 34 34 | 2005-07-10 05:38:25.000 | 2 2 | 2020-12-23 07:16:08 |
| 3911 | 2005-07-06 20:09:11.000 | 4548 4548 | 34 34 | 2005-07-08 23:53:11.000 | 1 1 | 2020-12-23 07:16:14 |
| 5188 | 2005-07-09 10:22:31.000 | 3265 3265 | 34 34 | 2005-07-13 04:41:31.000 | 1 1 | 2020-12-23 07:16:33 |
| 5643 | 2005-07-10 06:49:00.000 | 796 796 | 34 34 | 2005-07-14 01:53:00.000 | 1 1 | 2020-12-23 07:16:40 |
| 5918 | 2005-07-10 21:32:06.000 | 120 120 | 34 34 | 2005-07-19 21:35:06.000 | 1 1 | 2020-12-23 07:16:44 |
| 7015 | 2005-07-27 02:15:01.000 | 376 376 | 34 34 | 2005-07-28 07:46:01.000 | 2 2 | 2020-12-23 07:17:00 |
| 7124 | 2005-07-27 06:09:30.000 | 3449 3449 | 34 34 | 2005-08-02 09:31:30.000 | 1 1 | 2020-12-23 07:17:02 |
| 7532 | 2005-07-27 21:20:52.000 | 677 677 | 34 34 | 2005-07-30 21:38:52.000 | 1 1 | 2020-12-23 07:17:08 |
| 9160 | 2005-07-30 11:17:33.000 | 183 183 | 34 34 | 2005-08-06 15:16:33.000 | 2 2 | 2020-12-23 07:17:32 |
| 10523 | 2005-08-01 11:52:32.000 | 2408 2408 | 34 34 | 2005-08-02 10:47:32.000 | 1 1 | 2020-12-23 07:17:51 |
| 10615 | 2005-08-01 14:58:14.000 | 2639 2639 | 34 34 | 2005-08-02 13:38:14.000 | 1 1 | 2020-12-23 07:17:52 |
| 11096 | 2005-08-02 08:05:19.000 | 1436 1436 | 34 34 | 2005-08-04 07:28:19.000 | 2 2 | 2020-12-23 07:17:59 |
| 11505 | 2005-08-16 23:18:47.000 | 3344 3344 | 34 34 | 2005-08-23 19:52:47.000 | 2 2 | 2020-12-23 07:18:05 |
| 11701 | 2005-08-17 07:15:47.000 | 993 993 | 34 34 | 2005-08-19 01:44:47.000 | 2 2 | 2020-12-23 07:18:07 |
| 12286 | 2005-08-18 04:57:59.000 | 3729 3729 | 34 34 | 2005-08-18 23:20:59.000 | 2 2 | 2020-12-23 07:18:15 |
| 12599 | 2005-08-18 16:42:45.000 | 2032 2032 | 34 34 | 2005-08-23 18:27:45.000 | 2 2 | 2020-12-23 07:18:19 |
| 12651 | 2005-08-18 18:36:16.000 | 8 8 | 34 34 | 2005-08-22 22:01:16.000 | 1 1 | 2020-12-23 07:18:20 |
| 13371 | 2005-08-19 21:21:47.000 | 3401 3401 | 34 34 | 2005-08-26 16:17:47.000 | 2 2 | 2020-12-23 07:18:31 |
| 13949 | 2005-08-20 17:55:13.000 | 1518 1518 | 34 34 | 2005-08-22 20:49:13.000 | 1 1 | 2020-12-23 07:18:40 |
| 14686 | 2005-08-21 20:32:08.000 | 814 814 | 34 34 | 2005-08-26 18:07:08.000 | 1 1 | 2020-12-23 07:18:50 |
| 14701 | 2005-08-21 20:54:32.000 | 3034 3034 | 34 34 | 2005-08-30 16:46:32.000 | 1 1 | 2020-12-23 07:18:50 |
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) ;