home / sakila

rental

33 rows where customer_id = 230

✎ View and edit SQL

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
32 2005-05-25 04:06:21.000 3832 3832 230 230 2005-05-25 23:55:21.000 1 1 2020-12-23 07:15:20
1078 2005-05-31 10:28:33.000 3682 3682 230 230 2005-06-03 14:45:33.000 2 2 2020-12-23 07:15:34
1468 2005-06-15 20:48:22.000 228 228 230 230 2005-06-21 19:48:22.000 1 1 2020-12-23 07:15:39
1744 2005-06-16 16:39:58.000 3075 3075 230 230 2005-06-18 19:50:58.000 2 2 2020-12-23 07:15:43
1793 2005-06-16 20:07:27.000 4356 4356 230 230 2005-06-19 20:55:27.000 1 1 2020-12-23 07:15:44
2450 2005-06-18 19:25:47.000 863 863 230 230 2005-06-27 15:54:47.000 1 1 2020-12-23 07:15:53
2675 2005-06-19 11:52:15.000 3078 3078 230 230 2005-06-23 16:45:15.000 1 1 2020-12-23 07:15:56
2777 2005-06-19 18:16:26.000 4092 4092 230 230 2005-06-20 13:43:26.000 2 2 2020-12-23 07:15:58
4509 2005-07-08 02:32:38.000 1760 1760 230 230 2005-07-14 01:05:38.000 2 2 2020-12-23 07:16:23
4935 2005-07-08 22:20:56.000 2708 2708 230 230 2005-07-12 01:01:56.000 2 2 2020-12-23 07:16:30
5045 2005-07-09 03:33:32.000 1041 1041 230 230 2005-07-18 06:15:32.000 1 1 2020-12-23 07:16:31
5061 2005-07-09 04:30:50.000 3893 3893 230 230 2005-07-12 03:24:50.000 1 1 2020-12-23 07:16:31
5269 2005-07-09 14:23:05.000 3886 3886 230 230 2005-07-17 14:03:05.000 1 1 2020-12-23 07:16:34
6126 2005-07-11 08:06:56.000 1069 1069 230 230 2005-07-16 11:42:56.000 1 1 2020-12-23 07:16:47
6251 2005-07-11 15:06:20.000 3956 3956 230 230 2005-07-18 20:11:20.000 2 2 2020-12-23 07:16:48
7333 2005-07-27 13:59:11.000 1331 1331 230 230 2005-07-30 16:04:11.000 1 1 2020-12-23 07:17:05
7390 2005-07-27 15:59:19.000 1723 1723 230 230 2005-08-04 10:09:19.000 2 2 2020-12-23 07:17:06
8032 2005-07-28 16:17:00.000 431 431 230 230 2005-07-29 13:32:00.000 1 1 2020-12-23 07:17:15
8653 2005-07-29 15:04:23.000 4440 4440 230 230 2005-08-02 09:39:23.000 2 2 2020-12-23 07:17:24
8815 2005-07-29 21:51:26.000 3469 3469 230 230 2005-08-03 22:37:26.000 1 1 2020-12-23 07:17:26
9778 2005-07-31 10:02:04.000 304 304 230 230 2005-08-04 07:44:04.000 2 2 2020-12-23 07:17:41
10050 2005-07-31 19:13:29.000 295 295 230 230 2005-08-06 15:44:29.000 1 1 2020-12-23 07:17:44
10057 2005-07-31 19:20:18.000 3485 3485 230 230 2005-08-08 17:59:18.000 2 2 2020-12-23 07:17:45
10874 2005-08-02 00:31:00.000 2552 2552 230 230 2005-08-07 05:04:00.000 1 1 2020-12-23 07:17:56
11148 2005-08-02 09:47:08.000 2991 2991 230 230 2005-08-08 10:57:08.000 1 1 2020-12-23 07:18:00
11552 2005-08-17 01:04:29.000 1143 1143 230 230 2005-08-23 23:07:29.000 1 1 2020-12-23 07:18:05
11914 2005-08-17 16:04:42.000 1634 1634 230 230 2005-08-22 19:29:42.000 1 1 2020-12-23 07:18:10
12079 2005-08-17 22:04:17.000 646 646 230 230 2005-08-24 20:22:17.000 2 2 2020-12-23 07:18:12
12523 2005-08-18 13:45:41.000 888 888 230 230 2005-08-27 10:46:41.000 1 1 2020-12-23 07:18:18
12542 2005-08-18 14:21:11.000 1920 1920 230 230 2005-08-20 16:06:11.000 2 2 2020-12-23 07:18:19
14017 2005-08-20 20:55:32.000 920 920 230 230 2005-08-23 16:12:32.000 1 1 2020-12-23 07:18:41
14073 2005-08-20 23:12:57.000 2996 2996 230 230 2005-08-28 18:47:57.000 2 2 2020-12-23 07:18:42
14340 2005-08-21 08:38:21.000 2181 2181 230 230 2005-08-25 09:25:21.000 1 1 2020-12-23 07:18:46

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 11.423ms