home / sakila

rental

22 rows where customer_id = 430

✎ View and edit SQL

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
30 2005-05-25 04:01:32.000 3744 3744 430 430 2005-05-30 03:12:32.000 1 1 2020-12-23 07:15:20
364 2005-05-27 07:20:12.000 833 833 430 430 2005-05-31 10:44:12.000 2 2 2020-12-23 07:15:24
1207 2005-06-15 02:27:08.000 2277 2277 430 430 2005-06-19 08:18:08.000 2 2 2020-12-23 07:15:36
1274 2005-06-15 07:52:52.000 2765 2765 430 430 2005-06-20 10:01:52.000 1 1 2020-12-23 07:15:37
1538 2005-06-16 01:05:50.000 708 708 430 430 2005-06-18 19:48:50.000 1 1 2020-12-23 07:15:40
1759 2005-06-16 17:46:37.000 1402 1402 430 430 2005-06-24 19:40:37.000 2 2 2020-12-23 07:15:43
2892 2005-06-20 02:06:39.000 2993 2993 430 430 2005-06-21 02:50:39.000 2 2 2020-12-23 07:15:59
3153 2005-06-20 20:44:15.000 659 659 430 430 2005-06-23 16:04:15.000 1 1 2020-12-23 07:16:03
5002 2005-07-09 01:17:08.000 2388 2388 430 430 2005-07-15 21:53:08.000 1 1 2020-12-23 07:16:31
5217 2005-07-09 11:56:50.000 4150 4150 430 430 2005-07-17 07:10:50.000 1 1 2020-12-23 07:16:34
5879 2005-07-10 19:12:47.000 3851 3851 430 430 2005-07-16 16:32:47.000 1 1 2020-12-23 07:16:44
5958 2005-07-10 23:31:51.000 3468 3468 430 430 2005-07-19 00:36:51.000 2 2 2020-12-23 07:16:45
6043 2005-07-11 03:18:10.000 3303 3303 430 430 2005-07-12 05:50:10.000 1 1 2020-12-23 07:16:46
8560 2005-07-29 11:27:27.000 3499 3499 430 430 2005-08-01 12:05:27.000 2 2 2020-12-23 07:17:23
9450 2005-07-30 22:04:04.000 1371 1371 430 430 2005-08-05 18:39:04.000 2 2 2020-12-23 07:17:36
12723 2005-08-18 21:34:16.000 4167 4167 430 430 2005-08-22 22:37:16.000 1 1 2020-12-23 07:18:21
12965 2005-08-19 06:33:00.000 4308 4308 430 430 2005-08-22 02:02:00.000 1 1 2020-12-23 07:18:25
13007 2005-08-19 07:47:43.000 4280 4280 430 430 2005-08-26 02:48:43.000 2 2 2020-12-23 07:18:25
13452 2005-08-20 00:20:07.000 2449 2449 430 430 2005-08-25 05:43:07.000 1 1 2020-12-23 07:18:32
13454 2005-08-20 00:30:52.000 1553 1553 430 430 2005-08-27 19:45:52.000 2 2 2020-12-23 07:18:32
14058 2005-08-20 22:24:35.000 178 178 430 430 2005-08-30 02:26:35.000 1 1 2020-12-23 07:18:41
15031 2005-08-22 09:11:48.000 3926 3926 430 430 2005-08-27 06:11:48.000 1 1 2020-12-23 07:18:55

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

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)
;
Powered by Datasette · Queries took 10.839ms