home / sakila

rental

32 rows where customer_id = 244

✎ 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
592 2005-05-28 13:21:08.000 638 638 244 244 2005-05-29 16:55:08.000 1 1 2020-12-23 07:15:27
797 2005-05-29 17:12:17.000 1446 1446 244 244 2005-06-03 16:06:17.000 1 1 2020-12-23 07:15:30
1189 2005-06-15 01:04:22.000 142 142 244 244 2005-06-24 06:48:22.000 1 1 2020-12-23 07:15:36
1595 2005-06-16 05:23:46.000 1481 1481 244 244 2005-06-20 00:37:46.000 1 1 2020-12-23 07:15:41
2955 2005-06-20 06:46:35.000 2312 2312 244 244 2005-06-25 05:34:35.000 2 2 2020-12-23 07:16:00
4814 2005-07-08 17:11:09.000 3497 3497 244 244 2005-07-17 12:43:09.000 2 2 2020-12-23 07:16:28
5387 2005-07-09 19:25:14.000 4452 4452 244 244 2005-07-11 21:00:14.000 1 1 2020-12-23 07:16:36
5461 2005-07-09 22:48:04.000 53 53 244 244 2005-07-10 17:56:04.000 2 2 2020-12-23 07:16:37
5692 2005-07-10 09:32:22.000 59 59 244 244 2005-07-15 15:20:22.000 2 2 2020-12-23 07:16:41
5779 2005-07-10 13:45:54.000 3266 3266 244 244 2005-07-15 18:13:54.000 1 1 2020-12-23 07:16:42
5803 2005-07-10 15:05:42.000 1982 1982 244 244 2005-07-15 10:19:42.000 1 1 2020-12-23 07:16:42
6374 2005-07-11 21:36:10.000 266 266 244 244 2005-07-17 15:50:10.000 2 2 2020-12-23 07:16:50
6608 2005-07-12 08:16:50.000 3577 3577 244 244 2005-07-18 07:08:50.000 2 2 2020-12-23 07:16:54
6683 2005-07-12 12:14:05.000 3433 3433 244 244 2005-07-17 14:02:05.000 2 2 2020-12-23 07:16:55
8454 2005-07-29 07:49:04.000 159 159 244 244 2005-08-03 04:43:04.000 2 2 2020-12-23 07:17:21
8844 2005-07-29 23:05:08.000 327 327 244 244 2005-08-06 00:24:08.000 2 2 2020-12-23 07:17:27
10001 2005-07-31 17:46:18.000 2188 2188 244 244 2005-08-07 20:38:18.000 1 1 2020-12-23 07:17:44
10047 2005-07-31 19:07:43.000 4195 4195 244 244 2005-08-07 00:20:43.000 2 2 2020-12-23 07:17:44
10152 2005-07-31 22:28:05.000 1114 1114 244 244 2005-08-08 22:39:05.000 2 2 2020-12-23 07:17:46
10684 2005-08-01 17:47:00.000 1985 1985 244 244 2005-08-09 15:00:00.000 2 2 2020-12-23 07:17:53
10969 2005-08-02 04:04:32.000 1898 1898 244 244 2005-08-09 23:18:32.000 1 1 2020-12-23 07:17:57
11157 2005-08-02 09:58:15.000 1313 1313 244 244 2005-08-06 04:23:15.000 2 2 2020-12-23 07:18:00
11267 2005-08-02 14:09:08.000 2045 2045 244 244 2005-08-10 12:33:08.000 1 1 2020-12-23 07:18:01
11762 2005-08-17 09:48:06.000 1204 1204 244 244 2005-08-26 13:12:06.000 2 2 2020-12-23 07:18:08
12736 2006-02-14 15:16:03.000 3591 3591 244 244   2 2 2020-12-23 07:18:21
13630 2005-08-20 07:05:56.000 3346 3346 244 244 2005-08-29 04:15:56.000 1 1 2020-12-23 07:18:35
13774 2005-08-20 11:54:01.000 735 735 244 244 2005-08-22 13:25:01.000 2 2 2020-12-23 07:18:37
13928 2005-08-20 17:12:28.000 1121 1121 244 244 2005-08-21 13:33:28.000 1 1 2020-12-23 07:18:40
14367 2005-08-21 09:31:44.000 870 870 244 244 2005-08-26 03:54:44.000 2 2 2020-12-23 07:18:46
14657 2005-08-21 19:39:43.000 477 477 244 244 2005-08-26 22:39:43.000 2 2 2020-12-23 07:18:50
14919 2005-08-22 05:07:17.000 1587 1587 244 244 2005-08-30 06:41:17.000 2 2 2020-12-23 07:18:53
14975 2005-08-22 07:07:50.000 924 924 244 244 2005-08-28 07:23:50.000 2 2 2020-12-23 07:18:54

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