home / sakila

rental

35 rows where customer_id = 274

✎ 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
147 2005-05-26 00:17:50.000 633 633 274 274 2005-05-29 23:21:50.000 2 2 2020-12-23 07:15:22
208 2005-05-26 08:10:22.000 3669 3669 274 274 2005-05-27 03:55:22.000 1 1 2020-12-23 07:15:22
301 2005-05-26 21:06:14.000 3448 3448 274 274 2005-06-01 01:54:14.000 2 2 2020-12-23 07:15:24
394 2005-05-27 11:26:11.000 1890 1890 274 274 2005-06-03 16:44:11.000 2 2 2020-12-23 07:15:25
474 2005-05-27 22:11:56.000 1474 1474 274 274 2005-05-31 19:07:56.000 1 1 2020-12-23 07:15:26
892 2005-05-30 08:02:56.000 471 471 274 274 2005-06-05 12:51:56.000 1 1 2020-12-23 07:15:32
2098 2005-06-17 18:42:09.000 3951 3951 274 274 2005-06-19 20:40:09.000 1 1 2020-12-23 07:15:48
3291 2005-06-21 06:55:36.000 3866 3866 274 274 2005-06-29 03:41:36.000 1 1 2020-12-23 07:16:05
3532 2005-07-06 01:24:38.000 2635 2635 274 274 2005-07-11 06:42:38.000 2 2 2020-12-23 07:16:08
4147 2005-07-07 08:32:12.000 2776 2776 274 274 2005-07-12 10:10:12.000 2 2 2020-12-23 07:16:18
4582 2005-07-08 06:09:09.000 688 688 274 274 2005-07-14 02:23:09.000 1 1 2020-12-23 07:16:24
6389 2005-07-11 22:18:20.000 2268 2268 274 274 2005-07-16 16:57:20.000 2 2 2020-12-23 07:16:50
8259 2005-07-29 01:05:16.000 343 343 274 274 2005-08-01 23:27:16.000 2 2 2020-12-23 07:17:18
8406 2005-07-29 06:34:45.000 2047 2047 274 274 2005-08-06 02:28:45.000 1 1 2020-12-23 07:17:20
8517 2005-07-29 10:00:48.000 2064 2064 274 274 2005-08-06 14:37:48.000 2 2 2020-12-23 07:17:22
9331 2005-07-30 17:46:50.000 2248 2248 274 274 2005-08-01 19:03:50.000 1 1 2020-12-23 07:17:34
9677 2005-07-31 06:39:45.000 3200 3200 274 274 2005-08-01 02:37:45.000 2 2 2020-12-23 07:17:39
10059 2005-07-31 19:20:49.000 2020 2020 274 274 2005-08-03 14:39:49.000 1 1 2020-12-23 07:17:45
10790 2005-08-01 21:38:37.000 3080 3080 274 274 2005-08-08 17:20:37.000 2 2 2020-12-23 07:17:55
10855 2005-08-02 00:06:37.000 1366 1366 274 274 2005-08-03 00:39:37.000 1 1 2020-12-23 07:17:56
11058 2005-08-02 06:38:44.000 3270 3270 274 274 2005-08-06 06:45:44.000 1 1 2020-12-23 07:17:58
11363 2005-08-02 17:48:39.000 3190 3190 274 274 2005-08-05 17:20:39.000 1 1 2020-12-23 07:18:03
12321 2005-08-18 06:27:05.000 516 516 274 274 2005-08-24 02:26:05.000 1 1 2020-12-23 07:18:16
13103 2005-08-19 11:05:51.000 1751 1751 274 274 2005-08-26 09:16:51.000 2 2 2020-12-23 07:18:27
13129 2005-08-19 12:05:04.000 4455 4455 274 274 2005-08-26 10:24:04.000 1 1 2020-12-23 07:18:27
13486 2006-02-14 15:16:03.000 4460 4460 274 274   1 1 2020-12-23 07:18:33
13549 2005-08-20 03:58:41.000 508 508 274 274 2005-08-28 22:49:41.000 1 1 2020-12-23 07:18:34
14012 2005-08-20 20:42:12.000 1866 1866 274 274 2005-08-23 23:10:12.000 2 2 2020-12-23 07:18:41
14066 2005-08-20 22:45:58.000 2444 2444 274 274 2005-08-29 00:23:58.000 2 2 2020-12-23 07:18:42
14164 2005-08-21 02:58:02.000 2381 2381 274 274 2005-08-29 23:17:02.000 2 2 2020-12-23 07:18:43
14388 2005-08-21 10:15:13.000 1078 1078 274 274 2005-08-30 13:41:13.000 2 2 2020-12-23 07:18:46
15143 2005-08-22 13:46:24.000 1519 1519 274 274 2005-08-25 09:47:24.000 2 2 2020-12-23 07:18:57
15260 2005-08-22 18:24:16.000 3135 3135 274 274 2005-08-24 21:26:16.000 1 1 2020-12-23 07:18:59
15328 2005-08-22 20:31:38.000 4546 4546 274 274 2005-08-29 20:17:38.000 1 1 2020-12-23 07:19:00
15819 2005-08-23 15:01:54.000 3639 3639 274 274 2005-08-31 20:01:54.000 2 2 2020-12-23 07:19:07

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.557ms