home / sakila

rental

34 rows where customer_id = 239

✎ 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
8 2005-05-24 23:31:46.000 2346 2346 239 239 2005-05-27 23:33:46.000 2 2 2020-12-23 07:15:20
444 2005-05-27 18:39:15.000 723 723 239 239 2005-06-01 15:56:15.000 1 1 2020-12-23 07:15:25
621 2005-05-28 15:58:12.000 1144 1144 239 239 2005-05-30 21:54:12.000 1 1 2020-12-23 07:15:28
636 2005-05-28 17:47:58.000 4213 4213 239 239 2005-06-04 16:32:58.000 1 1 2020-12-23 07:15:28
1022 2005-05-31 03:16:45.000 842 842 239 239 2005-06-08 09:04:45.000 1 1 2020-12-23 07:15:33
1082 2005-05-31 11:02:01.000 4510 4510 239 239 2005-06-05 08:43:01.000 1 1 2020-12-23 07:15:34
1160 2005-06-14 23:00:34.000 2795 2795 239 239 2005-06-18 01:58:34.000 2 2 2020-12-23 07:15:35
1560 2005-06-16 02:36:43.000 3418 3418 239 239 2005-06-24 23:10:43.000 2 2 2020-12-23 07:15:40
2215 2005-06-18 02:48:21.000 2060 2060 239 239 2005-06-22 01:03:21.000 2 2 2020-12-23 07:15:50
2390 2005-06-18 15:29:26.000 2748 2748 239 239 2005-06-23 17:50:26.000 1 1 2020-12-23 07:15:52
3383 2005-06-21 14:07:19.000 2968 2968 239 239 2005-06-29 17:00:19.000 2 2 2020-12-23 07:16:06
3547 2005-07-06 02:18:06.000 2730 2730 239 239 2005-07-08 05:24:06.000 1 1 2020-12-23 07:16:09
3552 2005-07-06 02:34:09.000 1099 1099 239 239 2005-07-12 05:31:09.000 1 1 2020-12-23 07:16:09
4920 2005-07-08 21:42:10.000 4285 4285 239 239 2005-07-15 03:08:10.000 1 1 2020-12-23 07:16:29
5651 2005-07-10 07:17:13.000 301 301 239 239 2005-07-15 12:13:13.000 2 2 2020-12-23 07:16:40
5960 2005-07-10 23:38:34.000 3884 3884 239 239 2005-07-11 19:21:34.000 1 1 2020-12-23 07:16:45
6573 2005-07-12 06:03:40.000 3308 3308 239 239 2005-07-13 11:49:40.000 2 2 2020-12-23 07:16:53
7012 2005-07-27 02:01:03.000 779 779 239 239 2005-08-05 07:34:03.000 2 2 2020-12-23 07:17:00
7426 2005-07-27 17:19:46.000 4420 4420 239 239 2005-07-29 21:41:46.000 1 1 2020-12-23 07:17:06
7491 2005-07-27 19:53:23.000 4261 4261 239 239 2005-07-28 23:25:23.000 2 2 2020-12-23 07:17:07
8457 2005-07-29 07:59:03.000 3371 3371 239 239 2005-08-04 08:42:03.000 1 1 2020-12-23 07:17:21
9676 2005-07-31 06:39:13.000 681 681 239 239 2005-08-05 09:31:13.000 2 2 2020-12-23 07:17:39
9863 2005-07-31 13:05:29.000 19 19 239 239 2005-08-08 12:33:29.000 1 1 2020-12-23 07:17:42
10755 2005-08-01 20:14:14.000 1217 1217 239 239 2005-08-07 01:04:14.000 1 1 2020-12-23 07:17:54
10923 2005-08-02 02:15:01.000 2602 2602 239 239 2005-08-03 04:18:01.000 1 1 2020-12-23 07:17:57
11487 2005-08-02 22:35:05.000 734 734 239 239 2005-08-08 00:54:05.000 2 2 2020-12-23 07:18:04
11900 2005-08-17 15:30:44.000 1931 1931 239 239 2005-08-19 16:12:44.000 1 1 2020-12-23 07:18:10
11968 2005-08-17 17:47:34.000 698 698 239 239 2005-08-18 19:40:34.000 1 1 2020-12-23 07:18:11
12340 2005-08-18 07:07:01.000 3561 3561 239 239 2005-08-20 05:06:01.000 1 1 2020-12-23 07:18:16
12721 2005-08-18 21:30:12.000 1045 1045 239 239 2005-08-22 22:45:12.000 1 1 2020-12-23 07:18:21
13175 2005-08-19 13:54:53.000 3187 3187 239 239 2005-08-20 16:25:53.000 2 2 2020-12-23 07:18:28
13427 2005-08-19 23:19:02.000 3120 3120 239 239 2005-08-21 18:30:02.000 1 1 2020-12-23 07:18:32
13999 2005-08-20 19:53:32.000 4149 4149 239 239 2005-08-26 19:01:32.000 1 1 2020-12-23 07:18:41
14062 2005-08-20 22:34:34.000 2841 2841 239 239 2005-08-25 17:11:34.000 2 2 2020-12-23 07:18:42

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