home / sakila

rental

37 rows where customer_id = 176

✎ 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
172 2005-05-26 03:17:42.000 2873 2873 176 176 2005-05-29 04:11:42.000 2 2 2020-12-23 07:15:22
380 2005-05-27 09:34:39.000 1777 1777 176 176 2005-06-04 11:45:39.000 1 1 2020-12-23 07:15:25
553 2005-05-28 08:14:44.000 1349 1349 176 176 2005-06-02 03:01:44.000 2 2 2020-12-23 07:15:27
663 2005-05-28 21:23:02.000 3997 3997 176 176 2005-06-02 17:39:02.000 2 2 2020-12-23 07:15:28
1062 2005-05-31 08:38:20.000 2223 2223 176 176 2005-06-09 08:23:20.000 2 2 2020-12-23 07:15:34
1291 2005-06-15 08:55:01.000 3090 3090 176 176 2005-06-24 04:22:01.000 1 1 2020-12-23 07:15:37
1741 2005-06-16 16:31:37.000 3722 3722 176 176 2005-06-25 21:38:37.000 1 1 2020-12-23 07:15:43
1836 2005-06-16 23:13:05.000 2753 2753 176 176 2005-06-24 01:40:05.000 2 2 2020-12-23 07:15:44
2181 2005-06-18 00:48:31.000 3481 3481 176 176 2005-06-25 06:43:31.000 2 2 2020-12-23 07:15:49
2218 2005-06-18 03:13:13.000 3577 3577 176 176 2005-06-18 21:16:13.000 1 1 2020-12-23 07:15:50
2427 2005-06-18 17:45:00.000 4278 4278 176 176 2005-06-27 20:07:00.000 2 2 2020-12-23 07:15:53
2503 2005-06-18 23:17:19.000 2486 2486 176 176 2005-06-23 03:57:19.000 2 2 2020-12-23 07:15:54
2922 2005-06-20 04:13:47.000 1671 1671 176 176 2005-06-22 04:38:47.000 2 2 2020-12-23 07:16:00
3643 2005-07-06 07:20:08.000 845 845 176 176 2005-07-11 07:01:08.000 1 1 2020-12-23 07:16:10
3931 2005-07-06 21:03:46.000 182 182 176 176 2005-07-16 01:32:46.000 1 1 2020-12-23 07:16:14
4121 2005-07-07 07:13:50.000 2429 2429 176 176 2005-07-13 04:32:50.000 2 2 2020-12-23 07:16:17
6035 2005-07-11 03:01:45.000 3474 3474 176 176 2005-07-14 01:04:45.000 2 2 2020-12-23 07:16:46
6354 2005-07-11 20:54:27.000 3203 3203 176 176 2005-07-18 23:46:27.000 2 2 2020-12-23 07:16:50
7017 2005-07-27 02:16:03.000 753 753 176 176 2005-07-31 07:49:03.000 1 1 2020-12-23 07:17:00
7025 2005-07-27 02:40:29.000 3530 3530 176 176 2005-07-29 23:02:29.000 2 2 2020-12-23 07:17:00
7210 2005-07-27 09:19:05.000 1984 1984 176 176 2005-07-28 04:35:05.000 1 1 2020-12-23 07:17:03
7521 2005-07-27 21:04:42.000 3144 3144 176 176 2005-08-03 16:06:42.000 1 1 2020-12-23 07:17:07
7751 2005-07-28 05:56:13.000 4425 4425 176 176 2005-08-05 08:08:13.000 1 1 2020-12-23 07:17:11
8279 2005-07-29 01:43:37.000 3838 3838 176 176 2005-08-03 02:36:37.000 1 1 2020-12-23 07:17:19
9145 2005-07-30 10:27:55.000 559 559 176 176 2005-08-07 14:41:55.000 2 2 2020-12-23 07:17:31
10277 2005-08-01 03:22:41.000 1472 1472 176 176 2005-08-05 05:07:41.000 1 1 2020-12-23 07:17:47
10441 2005-08-01 08:55:56.000 4122 4122 176 176 2005-08-03 10:26:56.000 2 2 2020-12-23 07:17:50
10862 2005-08-02 00:17:34.000 1077 1077 176 176 2005-08-08 00:31:34.000 2 2 2020-12-23 07:17:56
11678 2005-08-17 06:07:39.000 3511 3511 176 176 2005-08-21 10:51:39.000 2 2 2020-12-23 07:18:07
12299 2005-08-18 05:32:32.000 892 892 176 176 2005-08-22 08:14:32.000 2 2 2020-12-23 07:18:15
12718 2005-08-18 21:21:44.000 3221 3221 176 176 2005-08-20 01:01:44.000 1 1 2020-12-23 07:18:21
13170 2005-08-19 13:45:48.000 1072 1072 176 176 2005-08-27 11:00:48.000 2 2 2020-12-23 07:18:28
13186 2005-08-19 14:23:19.000 2802 2802 176 176 2005-08-28 11:26:19.000 1 1 2020-12-23 07:18:28
14083 2005-08-20 23:42:31.000 1823 1823 176 176 2005-08-28 21:44:31.000 1 1 2020-12-23 07:18:42
14232 2005-08-21 05:07:02.000 2710 2710 176 176 2005-08-29 06:57:02.000 1 1 2020-12-23 07:18:44
15311 2005-08-22 19:56:52.000 3612 3612 176 176 2005-08-31 20:15:52.000 2 2 2020-12-23 07:18:59
15933 2005-08-23 18:36:44.000 3493 3493 176 176 2005-08-26 12:41:44.000 2 2 2020-12-23 07:19:08

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