home / sakila

rental

33 rows where customer_id = 314

✎ 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
80 2005-05-25 12:12:07.000 2478 2478 314 314 2005-05-31 17:46:07.000 2 2 2020-12-23 07:15:21
440 2005-05-27 18:00:35.000 4452 4452 314 314 2005-05-29 16:15:35.000 1 1 2020-12-23 07:15:25
1598 2005-06-16 06:02:39.000 4171 4171 314 314 2005-06-23 09:09:39.000 1 1 2020-12-23 07:15:41
1624 2005-06-16 07:48:57.000 1066 1066 314 314 2005-06-17 05:52:57.000 1 1 2020-12-23 07:15:41
3517 2005-07-06 00:52:35.000 2762 2762 314 314 2005-07-08 20:10:35.000 2 2 2020-12-23 07:16:08
3656 2005-07-06 07:55:22.000 4544 4544 314 314 2005-07-13 10:36:22.000 2 2 2020-12-23 07:16:10
3808 2005-07-06 15:15:35.000 4339 4339 314 314 2005-07-07 16:10:35.000 1 1 2020-12-23 07:16:13
4386 2005-07-07 20:55:19.000 499 499 314 314 2005-07-10 21:51:19.000 1 1 2020-12-23 07:16:21
5241 2005-07-09 13:19:14.000 4079 4079 314 314 2005-07-11 14:32:14.000 1 1 2020-12-23 07:16:34
5856 2005-07-10 17:57:32.000 497 497 314 314 2005-07-11 13:57:32.000 1 1 2020-12-23 07:16:43
6192 2005-07-11 11:44:41.000 4573 4573 314 314 2005-07-19 10:12:41.000 1 1 2020-12-23 07:16:48
6666 2005-07-12 11:32:15.000 3194 3194 314 314 2005-07-14 16:09:15.000 2 2 2020-12-23 07:16:55
6763 2005-07-12 15:26:34.000 3364 3364 314 314 2005-07-18 16:38:34.000 2 2 2020-12-23 07:16:56
7004 2005-07-27 01:36:05.000 4416 4416 314 314 2005-08-03 23:46:05.000 1 1 2020-12-23 07:17:00
7276 2005-07-27 11:41:57.000 1665 1665 314 314 2005-08-01 10:39:57.000 1 1 2020-12-23 07:17:04
8022 2005-07-28 15:48:56.000 294 294 314 314 2005-08-06 13:40:56.000 1 1 2020-12-23 07:17:15
8073 2005-07-28 17:29:02.000 630 630 314 314 2005-08-01 22:17:02.000 2 2 2020-12-23 07:17:15
8105 2005-07-28 18:59:46.000 1316 1316 314 314 2005-07-29 22:51:46.000 1 1 2020-12-23 07:17:16
8328 2005-07-29 04:06:24.000 4454 4454 314 314 2005-08-03 22:24:24.000 1 1 2020-12-23 07:17:19
8644 2005-07-29 14:45:45.000 4507 4507 314 314 2005-08-03 20:10:45.000 2 2 2020-12-23 07:17:24
9191 2005-07-30 12:25:51.000 500 500 314 314 2005-08-05 16:13:51.000 1 1 2020-12-23 07:17:32
9318 2005-07-30 17:14:30.000 2426 2426 314 314 2005-08-06 16:53:30.000 1 1 2020-12-23 07:17:34
11908 2005-08-17 15:43:09.000 3390 3390 314 314 2005-08-24 14:32:09.000 2 2 2020-12-23 07:18:10
12434 2005-08-18 10:38:08.000 3078 3078 314 314 2005-08-22 16:14:08.000 2 2 2020-12-23 07:18:17
13120 2005-08-19 11:47:38.000 2273 2273 314 314 2005-08-26 08:20:38.000 2 2 2020-12-23 07:18:27
13265 2005-08-19 17:29:00.000 3933 3933 314 314 2005-08-20 12:59:00.000 2 2 2020-12-23 07:18:29
13553 2005-08-20 04:07:21.000 4407 4407 314 314 2005-08-28 09:55:21.000 1 1 2020-12-23 07:18:34
14145 2005-08-21 02:11:38.000 150 150 314 314 2005-08-22 22:19:38.000 2 2 2020-12-23 07:18:43
14409 2005-08-21 10:53:35.000 1161 1161 314 314 2005-08-25 10:40:35.000 2 2 2020-12-23 07:18:47
14682 2005-08-21 20:25:57.000 2974 2974 314 314 2005-08-28 00:42:57.000 2 2 2020-12-23 07:18:50
14815 2005-08-22 01:12:44.000 1183 1183 314 314 2005-08-24 01:42:44.000 2 2 2020-12-23 07:18:52
14873 2005-08-22 03:31:06.000 3533 3533 314 314 2005-08-31 05:34:06.000 1 1 2020-12-23 07:18:53
16021 2005-08-23 21:37:59.000 3057 3057 314 314 2005-08-31 01:52:59.000 1 1 2020-12-23 07:19:09

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