home / sakila

rental

34 rows where customer_id = 360

✎ 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
633 2005-05-28 17:37:59.000 58 58 360 360 2005-06-03 22:49:59.000 2 2 2020-12-23 07:15:28
777 2005-05-29 14:07:58.000 451 451 360 360 2005-06-03 08:41:58.000 2 2 2020-12-23 07:15:30
1492 2005-06-15 21:48:35.000 4148 4148 360 360 2005-06-17 17:18:35.000 1 1 2020-12-23 07:15:39
2402 2005-06-18 16:24:45.000 2833 2833 360 360 2005-06-27 14:39:45.000 1 1 2020-12-23 07:15:53
2541 2005-06-19 02:08:10.000 129 129 360 360 2005-06-23 23:32:10.000 1 1 2020-12-23 07:15:54
2780 2005-06-19 18:19:33.000 1513 1513 360 360 2005-06-28 22:29:33.000 1 1 2020-12-23 07:15:58
4056 2005-07-07 03:57:36.000 4211 4211 360 360 2005-07-09 08:53:36.000 2 2 2020-12-23 07:16:16
4487 2005-07-08 01:20:22.000 2220 2220 360 360 2005-07-16 21:23:22.000 2 2 2020-12-23 07:16:23
5456 2005-07-09 22:31:45.000 3003 3003 360 360 2005-07-12 03:53:45.000 1 1 2020-12-23 07:16:37
5834 2005-07-10 16:44:12.000 85 85 360 360 2005-07-14 11:34:12.000 2 2 2020-12-23 07:16:43
5995 2005-07-11 01:15:39.000 4357 4357 360 360 2005-07-20 05:01:39.000 2 2 2020-12-23 07:16:45
6442 2005-07-12 00:29:45.000 1273 1273 360 360 2005-07-15 19:37:45.000 2 2 2020-12-23 07:16:51
6770 2005-07-12 15:49:40.000 2080 2080 360 360 2005-07-20 10:14:40.000 2 2 2020-12-23 07:16:56
7251 2005-07-27 10:44:55.000 1737 1737 360 360 2005-08-01 16:12:55.000 1 1 2020-12-23 07:17:03
7588 2005-07-27 23:23:31.000 4033 4033 360 360 2005-08-04 02:54:31.000 1 1 2020-12-23 07:17:08
7654 2005-07-28 02:00:14.000 1009 1009 360 360 2005-07-31 20:50:14.000 2 2 2020-12-23 07:17:09
7908 2005-07-28 11:32:57.000 3646 3646 360 360 2005-08-03 13:30:57.000 2 2 2020-12-23 07:17:13
8220 2005-07-28 23:46:41.000 1061 1061 360 360 2005-07-31 22:14:41.000 2 2 2020-12-23 07:17:18
8361 2005-07-29 05:08:57.000 3404 3404 360 360 2005-08-03 02:49:57.000 1 1 2020-12-23 07:17:20
9283 2005-07-30 15:25:19.000 1858 1858 360 360 2005-08-01 15:35:19.000 2 2 2020-12-23 07:17:33
9352 2005-07-30 18:29:26.000 2619 2619 360 360 2005-07-31 19:43:26.000 1 1 2020-12-23 07:17:34
9623 2005-07-31 04:30:02.000 113 113 360 360 2005-08-06 23:34:02.000 1 1 2020-12-23 07:17:38
9659 2005-07-31 06:02:14.000 4262 4262 360 360 2005-08-07 00:54:14.000 2 2 2020-12-23 07:17:39
10857 2005-08-02 00:07:20.000 2961 2961 360 360 2005-08-04 02:35:20.000 1 1 2020-12-23 07:17:56
11264 2005-08-02 14:05:18.000 3420 3420 360 360 2005-08-10 08:46:18.000 2 2 2020-12-23 07:18:01
11553 2005-08-17 01:04:31.000 3317 3317 360 360 2005-08-24 00:44:31.000 1 1 2020-12-23 07:18:05
12088 2005-08-17 22:20:16.000 1754 1754 360 360 2005-08-25 23:30:16.000 2 2 2020-12-23 07:18:12
12773 2005-08-18 23:32:19.000 4390 4390 360 360 2005-08-27 04:40:19.000 1 1 2020-12-23 07:18:22
12795 2005-08-19 00:21:52.000 2745 2745 360 360 2005-08-22 22:13:52.000 2 2 2020-12-23 07:18:22
12839 2005-08-19 01:53:43.000 1970 1970 360 360 2005-08-28 02:27:43.000 2 2 2020-12-23 07:18:23
12990 2005-08-19 07:20:39.000 1825 1825 360 360 2005-08-21 12:31:39.000 2 2 2020-12-23 07:18:25
13894 2005-08-20 15:55:20.000 2649 2649 360 360 2005-08-26 17:26:20.000 2 2 2020-12-23 07:18:39
14700 2005-08-21 20:53:40.000 3446 3446 360 360 2005-08-23 22:01:40.000 1 1 2020-12-23 07:18:50
15310 2005-08-22 19:56:41.000 2546 2546 360 360 2005-08-24 16:32:41.000 2 2 2020-12-23 07:18:59

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