home / sakila

rental

39 rows where customer_id = 137

✎ 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
925 2005-05-30 12:13:52.000 3203 3203 137 137 2005-06-02 14:41:52.000 2 2 2020-12-23 07:15:32
2469 2005-06-18 20:24:23.000 1993 1993 137 137 2005-06-27 15:39:23.000 1 1 2020-12-23 07:15:53
2785 2005-06-19 18:43:57.000 826 826 137 137 2005-06-24 15:36:57.000 2 2 2020-12-23 07:15:58
3058 2005-06-20 13:28:35.000 938 938 137 137 2005-06-28 13:57:35.000 2 2 2020-12-23 07:16:01
3436 2005-06-21 19:16:09.000 2740 2740 137 137 2005-06-30 13:58:09.000 2 2 2020-12-23 07:16:07
3589 2005-07-06 04:30:18.000 3740 3740 137 137 2005-07-10 09:18:18.000 1 1 2020-12-23 07:16:09
3676 2005-07-06 09:10:37.000 1967 1967 137 137 2005-07-14 08:24:37.000 1 1 2020-12-23 07:16:11
3874 2005-07-06 18:06:12.000 1870 1870 137 137 2005-07-12 16:55:12.000 1 1 2020-12-23 07:16:14
4332 2005-07-07 18:25:26.000 1714 1714 137 137 2005-07-16 15:05:26.000 1 1 2020-12-23 07:16:21
4474 2005-07-08 00:26:56.000 4474 4474 137 137 2005-07-12 23:07:56.000 1 1 2020-12-23 07:16:23
5106 2005-07-09 06:40:24.000 110 110 137 137 2005-07-13 10:28:24.000 1 1 2020-12-23 07:16:32
5443 2005-07-09 21:56:09.000 2951 2951 137 137 2005-07-16 00:33:09.000 2 2 2020-12-23 07:16:37
5804 2005-07-10 15:06:31.000 2168 2168 137 137 2005-07-14 11:00:31.000 1 1 2020-12-23 07:16:42
6039 2005-07-11 03:12:19.000 1776 1776 137 137 2005-07-19 05:46:19.000 1 1 2020-12-23 07:16:46
6200 2005-07-11 12:16:42.000 3258 3258 137 137 2005-07-17 09:27:42.000 2 2 2020-12-23 07:16:48
8028 2005-07-28 16:11:15.000 2715 2715 137 137 2005-08-05 15:11:15.000 1 1 2020-12-23 07:17:15
8106 2005-07-28 19:02:46.000 963 963 137 137 2005-07-30 20:48:46.000 2 2 2020-12-23 07:17:16
8954 2005-07-30 03:25:51.000 991 991 137 137 2005-08-06 05:10:51.000 2 2 2020-12-23 07:17:28
9002 2005-07-30 05:02:21.000 1936 1936 137 137 2005-07-31 04:58:21.000 1 1 2020-12-23 07:17:29
9200 2005-07-30 12:39:52.000 3277 3277 137 137 2005-08-08 09:43:52.000 2 2 2020-12-23 07:17:32
9466 2005-07-30 22:44:36.000 2595 2595 137 137 2005-08-07 02:35:36.000 2 2 2020-12-23 07:17:36
9709 2005-07-31 08:04:55.000 2096 2096 137 137 2005-08-07 08:58:55.000 1 1 2020-12-23 07:17:40
9789 2005-07-31 10:30:25.000 619 619 137 137 2005-08-03 14:58:25.000 1 1 2020-12-23 07:17:41
10175 2005-07-31 23:40:11.000 3672 3672 137 137 2005-08-09 02:22:11.000 1 1 2020-12-23 07:17:46
10595 2005-08-01 14:16:28.000 966 966 137 137 2005-08-03 10:37:28.000 1 1 2020-12-23 07:17:52
10842 2005-08-01 23:41:24.000 1300 1300 137 137 2005-08-11 03:48:24.000 1 1 2020-12-23 07:17:56
11057 2005-08-02 06:38:19.000 3143 3143 137 137 2005-08-11 03:43:19.000 1 1 2020-12-23 07:17:58
11281 2005-08-02 14:35:01.000 2210 2210 137 137 2005-08-07 17:28:01.000 1 1 2020-12-23 07:18:01
11732 2005-08-17 08:29:46.000 460 460 137 137 2005-08-23 14:21:46.000 2 2 2020-12-23 07:18:08
12078 2005-08-17 22:00:22.000 684 684 137 137 2005-08-24 02:54:22.000 2 2 2020-12-23 07:18:12
13148 2005-08-19 12:55:30.000 1762 1762 137 137 2005-08-21 11:01:30.000 1 1 2020-12-23 07:18:27
13472 2005-08-20 01:03:31.000 3074 3074 137 137 2005-08-28 02:54:31.000 1 1 2020-12-23 07:18:32
13776 2005-08-20 11:57:06.000 2439 2439 137 137 2005-08-26 10:55:06.000 1 1 2020-12-23 07:18:37
14754 2005-08-21 23:17:26.000 2355 2355 137 137 2005-08-29 18:55:26.000 2 2 2020-12-23 07:18:51
15082 2005-08-22 11:17:06.000 2046 2046 137 137 2005-08-28 06:40:06.000 1 1 2020-12-23 07:18:56
15133 2005-08-22 13:17:43.000 3408 3408 137 137 2005-08-26 08:40:43.000 1 1 2020-12-23 07:18:57
15537 2005-08-23 04:00:30.000 2958 2958 137 137 2005-08-24 01:45:30.000 2 2 2020-12-23 07:19:03
15889 2005-08-23 16:57:43.000 787 787 137 137 2005-08-27 22:14:43.000 1 1 2020-12-23 07:19:08
16030 2005-08-23 21:56:04.000 4161 4161 137 137 2005-08-31 01:24:04.000 2 2 2020-12-23 07:19:10

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