home / sakila

rental

24 rows where customer_id = 455

✎ 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
115 2005-05-25 19:13:25.000 749 749 455 455 2005-05-29 20:17:25.000 1 1 2020-12-23 07:15:21
343 2005-05-27 04:13:41.000 3301 3301 455 455 2005-05-28 08:34:41.000 1 1 2020-12-23 07:15:24
1382 2005-06-15 15:18:08.000 3133 3133 455 455 2005-06-22 09:22:08.000 2 2 2020-12-23 07:15:38
1802 2005-06-16 20:23:30.000 4174 4174 455 455 2005-06-21 20:02:30.000 1 1 2020-12-23 07:15:44
1906 2005-06-17 04:53:35.000 1049 1049 455 455 2005-06-21 01:16:35.000 2 2 2020-12-23 07:15:45
2356 2005-06-18 12:59:23.000 2207 2207 455 455 2005-06-21 10:12:23.000 2 2 2020-12-23 07:15:52
4195 2005-07-07 11:00:02.000 450 450 455 455 2005-07-14 16:54:02.000 1 1 2020-12-23 07:16:18
4861 2005-07-08 18:57:30.000 2984 2984 455 455 2005-07-16 15:12:30.000 2 2 2020-12-23 07:16:29
4964 2005-07-08 23:46:38.000 1033 1033 455 455 2005-07-09 22:19:38.000 2 2 2020-12-23 07:16:30
5504 2005-07-10 00:36:38.000 3053 3053 455 455 2005-07-16 19:36:38.000 1 1 2020-12-23 07:16:38
6729 2005-07-12 13:58:23.000 2495 2495 455 455 2005-07-19 09:34:23.000 2 2 2020-12-23 07:16:56
7388 2005-07-27 15:54:19.000 4559 4559 455 455 2005-08-01 17:02:19.000 2 2 2020-12-23 07:17:06
7498 2005-07-27 20:09:31.000 1144 1144 455 455 2005-07-29 23:38:31.000 1 1 2020-12-23 07:17:07
7905 2005-07-28 11:26:57.000 4287 4287 455 455 2005-08-02 06:14:57.000 1 1 2020-12-23 07:17:13
8291 2005-07-29 02:28:25.000 2817 2817 455 455 2005-08-03 20:57:25.000 2 2 2020-12-23 07:17:19
10436 2005-08-01 08:50:59.000 4026 4026 455 455 2005-08-04 05:23:59.000 1 1 2020-12-23 07:17:50
11605 2005-08-17 03:30:57.000 1292 1292 455 455 2005-08-24 07:02:57.000 2 2 2020-12-23 07:18:06
12163 2005-08-18 00:46:01.000 1349 1349 455 455 2005-08-22 06:16:01.000 1 1 2020-12-23 07:18:14
12314 2005-08-18 06:10:02.000 2204 2204 455 455 2005-08-25 02:48:02.000 1 1 2020-12-23 07:18:15
13083 2005-08-19 10:26:45.000 3469 3469 455 455 2005-08-23 05:31:45.000 2 2 2020-12-23 07:18:26
13813 2005-08-20 13:03:26.000 601 601 455 455 2005-08-25 08:42:26.000 1 1 2020-12-23 07:18:38
14294 2005-08-21 07:07:26.000 354 354 455 455 2005-08-22 02:20:26.000 2 2 2020-12-23 07:18:45
14583 2005-08-21 17:11:47.000 1203 1203 455 455 2005-08-24 16:16:47.000 2 2 2020-12-23 07:18:49
15494 2005-08-23 02:25:09.000 2968 2968 455 455 2005-08-27 00:18:09.000 1 1 2020-12-23 07:19:02

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