home / sakila

rental

40 rows where customer_id = 469

✎ 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
168 2005-05-26 03:07:43.000 2714 2714 469 469 2005-06-02 02:09:43.000 2 2 2020-12-23 07:15:22
506 2005-05-28 02:09:19.000 667 667 469 469 2005-06-05 20:34:19.000 1 1 2020-12-23 07:15:26
529 2005-05-28 04:34:17.000 2624 2624 469 469 2005-05-30 00:35:17.000 1 1 2020-12-23 07:15:26
936 2005-05-30 13:52:49.000 901 901 469 469 2005-06-07 16:56:49.000 1 1 2020-12-23 07:15:32
1119 2005-05-31 16:34:27.000 4401 4401 469 469 2005-06-02 10:54:27.000 1 1 2020-12-23 07:15:35
1399 2005-06-15 16:29:51.000 1435 1435 469 469 2005-06-18 14:06:51.000 1 1 2020-12-23 07:15:38
1680 2005-06-16 11:17:22.000 4441 4441 469 469 2005-06-25 15:55:22.000 2 2 2020-12-23 07:15:42
3522 2005-07-06 01:00:21.000 4522 4522 469 469 2005-07-11 01:18:21.000 1 1 2020-12-23 07:16:08
3526 2005-07-06 01:03:29.000 3871 3871 469 469 2005-07-15 01:22:29.000 2 2 2020-12-23 07:16:08
4067 2005-07-07 04:34:23.000 2945 2945 469 469 2005-07-16 04:04:23.000 1 1 2020-12-23 07:16:17
4123 2005-07-07 07:16:19.000 2707 2707 469 469 2005-07-10 05:23:19.000 1 1 2020-12-23 07:16:17
5133 2005-07-09 07:43:22.000 3403 3403 469 469 2005-07-12 04:52:22.000 1 1 2020-12-23 07:16:33
5299 2005-07-09 15:38:09.000 4416 4416 469 469 2005-07-15 16:39:09.000 2 2 2020-12-23 07:16:35
5664 2005-07-10 08:04:41.000 2375 2375 469 469 2005-07-17 10:29:41.000 1 1 2020-12-23 07:16:40
6022 2005-07-11 02:15:53.000 2435 2435 469 469 2005-07-13 03:40:53.000 2 2 2020-12-23 07:16:45
6099 2005-07-11 06:24:44.000 3865 3865 469 469 2005-07-15 08:03:44.000 2 2 2020-12-23 07:16:46
6797 2005-07-12 16:47:06.000 1536 1536 469 469 2005-07-14 14:38:06.000 2 2 2020-12-23 07:16:57
6955 2005-07-26 23:55:48.000 1104 1104 469 469 2005-08-02 03:25:48.000 2 2 2020-12-23 07:16:59
7062 2005-07-27 03:52:01.000 226 226 469 469 2005-08-03 08:26:01.000 1 1 2020-12-23 07:17:01
7271 2005-07-27 11:29:11.000 858 858 469 469 2005-08-05 15:33:11.000 1 1 2020-12-23 07:17:04
7756 2005-07-28 06:22:52.000 1611 1611 469 469 2005-08-05 11:55:52.000 2 2 2020-12-23 07:17:11
7914 2005-07-28 11:48:08.000 2796 2796 469 469 2005-07-30 14:14:08.000 1 1 2020-12-23 07:17:13
8791 2005-07-29 20:53:23.000 1677 1677 469 469 2005-07-31 18:14:23.000 1 1 2020-12-23 07:17:26
9187 2005-07-30 12:14:03.000 4008 4008 469 469 2005-08-04 13:10:03.000 2 2 2020-12-23 07:17:32
10075 2005-07-31 19:58:42.000 2037 2037 469 469 2005-08-08 19:49:42.000 1 1 2020-12-23 07:17:45
10258 2005-08-01 02:51:09.000 2062 2062 469 469 2005-08-08 23:57:09.000 2 2 2020-12-23 07:17:47
10316 2005-08-01 04:34:57.000 1907 1907 469 469 2005-08-06 02:34:57.000 2 2 2020-12-23 07:17:48
10658 2005-08-01 16:39:18.000 2943 2943 469 469 2005-08-09 18:17:18.000 2 2 2020-12-23 07:17:53
10741 2005-08-01 19:52:52.000 3300 3300 469 469 2005-08-04 19:58:52.000 1 1 2020-12-23 07:17:54
11185 2005-08-02 11:04:35.000 1215 1215 469 469 2005-08-05 13:48:35.000 2 2 2020-12-23 07:18:00
12035 2005-08-17 20:18:06.000 2335 2335 469 469 2005-08-21 16:41:06.000 2 2 2020-12-23 07:18:12
12447 2005-08-18 10:57:01.000 4084 4084 469 469 2005-08-27 06:05:01.000 1 1 2020-12-23 07:18:17
12633 2005-08-18 17:55:38.000 4341 4341 469 469 2005-08-23 17:19:38.000 2 2 2020-12-23 07:18:20
13654 2005-08-20 07:58:21.000 1582 1582 469 469 2005-08-21 09:40:21.000 2 2 2020-12-23 07:18:35
13763 2005-08-20 11:37:56.000 4171 4171 469 469 2005-08-26 13:12:56.000 1 1 2020-12-23 07:18:37
14197 2005-08-21 03:47:25.000 340 340 469 469 2005-08-30 09:15:25.000 2 2 2020-12-23 07:18:44
14661 2005-08-21 19:44:21.000 745 745 469 469 2005-08-27 14:35:21.000 1 1 2020-12-23 07:18:50
15487 2005-08-23 02:05:51.000 2636 2636 469 469 2005-08-25 04:45:51.000 1 1 2020-12-23 07:19:02
15561 2005-08-23 05:02:31.000 68 68 469 469 2005-09-01 02:51:31.000 1 1 2020-12-23 07:19:03
15851 2005-08-23 15:46:33.000 2286 2286 469 469 2005-08-29 15:52:33.000 1 1 2020-12-23 07:19:07

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