home / sakila

rental

25 rows where customer_id = 463

✎ 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
560 2005-05-28 08:53:02.000 644 644 463 463 2005-06-04 12:27:02.000 2 2 2020-12-23 07:15:27
1284 2005-06-15 08:27:33.000 1387 1387 463 463 2005-06-17 03:58:33.000 1 1 2020-12-23 07:15:37
2527 2005-06-19 01:10:31.000 387 387 463 463 2005-06-20 05:37:31.000 2 2 2020-12-23 07:15:54
3217 2005-06-21 01:28:12.000 1027 1027 463 463 2005-06-25 02:51:12.000 2 2 2020-12-23 07:16:04
3309 2005-06-21 08:00:49.000 248 248 463 463 2005-06-29 04:11:49.000 2 2 2020-12-23 07:16:05
5026 2005-07-09 02:32:34.000 989 989 463 463 2005-07-13 04:39:34.000 2 2 2020-12-23 07:16:31
5157 2005-07-09 08:52:12.000 637 637 463 463 2005-07-12 04:32:12.000 2 2 2020-12-23 07:16:33
5448 2005-07-09 22:11:14.000 646 646 463 463 2005-07-15 21:08:14.000 2 2 2020-12-23 07:16:37
6294 2005-07-11 17:25:55.000 1732 1732 463 463 2005-07-15 17:48:55.000 1 1 2020-12-23 07:16:49
6932 2005-07-26 23:08:04.000 4517 4517 463 463 2005-08-05 01:35:04.000 1 1 2020-12-23 07:16:59
7013 2005-07-27 02:03:21.000 3919 3919 463 463 2005-07-31 22:12:21.000 1 1 2020-12-23 07:17:00
7361 2005-07-27 14:53:55.000 4567 4567 463 463 2005-07-31 19:48:55.000 2 2 2020-12-23 07:17:05
8762 2005-07-29 19:30:02.000 2765 2765 463 463 2005-08-04 18:38:02.000 1 1 2020-12-23 07:17:26
9405 2005-07-30 20:22:17.000 1983 1983 463 463 2005-08-08 16:55:17.000 1 1 2020-12-23 07:17:35
9954 2005-07-31 15:57:07.000 1830 1830 463 463 2005-08-05 12:04:07.000 2 2 2020-12-23 07:17:43
10275 2005-08-01 03:20:08.000 669 669 463 463 2005-08-08 06:48:08.000 1 1 2020-12-23 07:17:47
10405 2005-08-01 07:35:25.000 3641 3641 463 463 2005-08-05 05:38:25.000 2 2 2020-12-23 07:17:49
10906 2005-08-02 01:47:04.000 3139 3139 463 463 2005-08-07 20:41:04.000 2 2 2020-12-23 07:17:56
12096 2005-08-17 22:32:50.000 44 44 463 463 2005-08-25 03:33:50.000 1 1 2020-12-23 07:18:13
12679 2005-08-18 19:42:11.000 1535 1535 463 463 2005-08-25 01:01:11.000 1 1 2020-12-23 07:18:20
12950 2005-08-19 05:55:58.000 1064 1064 463 463 2005-08-23 08:05:58.000 1 1 2020-12-23 07:18:24
13938 2005-08-20 17:24:45.000 3743 3743 463 463 2005-08-21 18:39:45.000 1 1 2020-12-23 07:18:40
14689 2005-08-21 20:33:00.000 1124 1124 463 463 2005-08-22 18:10:00.000 1 1 2020-12-23 07:18:50
14859 2005-08-22 02:46:35.000 2150 2150 463 463 2005-08-24 22:37:35.000 2 2 2020-12-23 07:18:53
15151 2005-08-22 14:23:11.000 4070 4070 463 463 2005-08-30 14:01:11.000 1 1 2020-12-23 07:18:57

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