home / sakila

rental

34 rows where customer_id = 129

✎ 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
1732 2005-06-16 15:34:41.000 2287 2287 129 129 2005-06-18 13:05:41.000 1 1 2020-12-23 07:15:43
2727 2005-06-19 15:02:39.000 3261 3261 129 129 2005-06-28 17:49:39.000 1 1 2020-12-23 07:15:57
2768 2005-06-19 17:46:52.000 3018 3018 129 129 2005-06-25 21:49:52.000 1 1 2020-12-23 07:15:58
2795 2005-06-19 18:58:53.000 3694 3694 129 129 2005-06-28 18:56:53.000 1 1 2020-12-23 07:15:58
3183 2005-06-20 22:55:55.000 4397 4397 129 129 2005-06-23 17:22:55.000 1 1 2020-12-23 07:16:03
3219 2005-06-21 01:43:26.000 3024 3024 129 129 2005-06-28 23:50:26.000 2 2 2020-12-23 07:16:04
3689 2005-07-06 09:43:01.000 3168 3168 129 129 2005-07-11 09:57:01.000 1 1 2020-12-23 07:16:11
3900 2005-07-06 19:21:28.000 1497 1497 129 129 2005-07-15 21:06:28.000 2 2 2020-12-23 07:16:14
3936 2005-07-06 21:15:03.000 4258 4258 129 129 2005-07-08 17:45:03.000 2 2 2020-12-23 07:16:14
4256 2005-07-07 14:14:36.000 1386 1386 129 129 2005-07-10 09:41:36.000 1 1 2020-12-23 07:16:19
4602 2005-07-08 06:52:40.000 3616 3616 129 129 2005-07-10 06:30:40.000 1 1 2020-12-23 07:16:25
4896 2005-07-08 20:23:15.000 3006 3006 129 129 2005-07-10 15:38:15.000 1 1 2020-12-23 07:16:29
4996 2005-07-09 00:59:46.000 4440 4440 129 129 2005-07-16 01:30:46.000 2 2 2020-12-23 07:16:31
5127 2005-07-09 07:25:47.000 3649 3649 129 129 2005-07-13 11:44:47.000 2 2 2020-12-23 07:16:32
5350 2005-07-09 17:39:30.000 724 724 129 129 2005-07-11 16:43:30.000 2 2 2020-12-23 07:16:36
8339 2005-07-29 04:41:13.000 1870 1870 129 129 2005-07-30 09:01:13.000 2 2 2020-12-23 07:17:19
8345 2005-07-29 04:47:37.000 1034 1034 129 129 2005-08-02 07:25:37.000 1 1 2020-12-23 07:17:20
9823 2005-07-31 11:49:00.000 4423 4423 129 129 2005-08-07 09:06:00.000 2 2 2020-12-23 07:17:41
9983 2005-07-31 17:09:36.000 350 350 129 129 2005-08-08 20:26:36.000 1 1 2020-12-23 07:17:44
10024 2005-07-31 18:26:36.000 265 265 129 129 2005-08-09 16:16:36.000 1 1 2020-12-23 07:17:44
10167 2005-07-31 23:24:31.000 1222 1222 129 129 2005-08-06 17:42:31.000 2 2 2020-12-23 07:17:46
10395 2005-08-01 07:08:22.000 279 279 129 129 2005-08-05 08:00:22.000 2 2 2020-12-23 07:17:49
10468 2005-08-01 09:48:29.000 2115 2115 129 129 2005-08-05 09:58:29.000 2 2 2020-12-23 07:17:50
10483 2005-08-01 10:19:45.000 1521 1521 129 129 2005-08-04 09:29:45.000 1 1 2020-12-23 07:17:50
10550 2005-08-01 12:46:52.000 1980 1980 129 129 2005-08-05 16:48:52.000 2 2 2020-12-23 07:17:51
10816 2005-08-01 22:48:57.000 905 905 129 129 2005-08-10 04:39:57.000 2 2 2020-12-23 07:17:55
12612 2005-08-18 17:10:05.000 1035 1035 129 129 2005-08-26 15:55:05.000 2 2 2020-12-23 07:18:19
12728 2005-08-18 21:47:48.000 3156 3156 129 129 2005-08-25 16:13:48.000 1 1 2020-12-23 07:18:21
13653 2005-08-20 07:54:54.000 4029 4029 129 129 2005-08-29 06:43:54.000 1 1 2020-12-23 07:18:35
13915 2005-08-20 16:42:53.000 1180 1180 129 129 2005-08-23 20:30:53.000 2 2 2020-12-23 07:18:39
13919 2005-08-20 16:47:34.000 909 909 129 129 2005-08-23 21:27:34.000 2 2 2020-12-23 07:18:39
13961 2005-08-20 18:16:34.000 2271 2271 129 129 2005-08-21 16:14:34.000 1 1 2020-12-23 07:18:40
14353 2005-08-21 09:07:50.000 1612 1612 129 129 2005-08-22 10:31:50.000 2 2 2020-12-23 07:18:46
14968 2005-08-22 06:46:59.000 3302 3302 129 129 2005-08-29 07:36:59.000 1 1 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 11.404ms