home / sakila

rental

33 rows where customer_id = 533

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

Suggested facets: staff_id, last_update, rental_date (date), return_date (date), last_update (date)

rental_id ▼ rental_date inventory_id customer_id return_date staff_id last_update
173 2005-05-26 03:42:10.000 3596 3596 533 533 2005-05-28 01:37:10.000 2 2 2020-12-23 07:15:22
190 2005-05-26 06:11:28.000 3962 3962 533 533 2005-06-01 09:44:28.000 1 1 2020-12-23 07:15:22
615 2005-05-28 15:35:52.000 3397 3397 533 533 2005-06-03 17:35:52.000 2 2 2020-12-23 07:15:28
1421 2005-06-15 17:57:04.000 2439 2439 533 533 2005-06-21 20:38:04.000 2 2 2020-12-23 07:15:39
1652 2005-06-16 09:31:37.000 3416 3416 533 533 2005-06-19 14:02:37.000 2 2 2020-12-23 07:15:41
1859 2005-06-17 01:13:38.000 3405 3405 533 533 2005-06-18 03:13:38.000 1 1 2020-12-23 07:15:45
1954 2005-06-17 08:37:55.000 3203 3203 533 533 2005-06-20 02:55:55.000 2 2 2020-12-23 07:15:46
2770 2005-06-19 17:54:22.000 3042 3042 533 533 2005-06-26 23:09:22.000 2 2 2020-12-23 07:15:58
2956 2005-06-20 06:47:23.000 2684 2684 533 533 2005-06-22 07:24:23.000 2 2 2020-12-23 07:16:00
4112 2005-07-07 06:49:09.000 3284 3284 533 533 2005-07-16 06:53:09.000 2 2 2020-12-23 07:16:17
4788 2005-07-08 16:17:35.000 691 691 533 533 2005-07-11 11:56:35.000 2 2 2020-12-23 07:16:27
6781 2005-07-12 16:21:47.000 3783 3783 533 533 2005-07-15 19:52:47.000 1 1 2020-12-23 07:16:56
6834 2005-07-12 18:53:37.000 897 897 533 533 2005-07-19 13:42:37.000 1 1 2020-12-23 07:16:57
6837 2005-07-12 18:59:45.000 1203 1203 533 533 2005-07-21 22:47:45.000 2 2 2020-12-23 07:16:57
7555 2005-07-27 22:17:05.000 3421 3421 533 533 2005-08-02 02:50:05.000 2 2 2020-12-23 07:17:08
8093 2005-07-28 18:29:16.000 1427 1427 533 533 2005-08-05 21:49:16.000 1 1 2020-12-23 07:17:16
8104 2005-07-28 18:59:36.000 1080 1080 533 533 2005-08-03 22:05:36.000 2 2 2020-12-23 07:17:16
8250 2005-07-29 00:49:15.000 4519 4519 533 533 2005-08-04 02:53:15.000 1 1 2020-12-23 07:17:18
8471 2005-07-29 08:32:11.000 1520 1520 533 533 2005-08-01 13:55:11.000 1 1 2020-12-23 07:17:21
8676 2005-07-29 15:59:06.000 283 283 533 533 2005-08-05 19:12:06.000 2 2 2020-12-23 07:17:25
8786 2005-07-29 20:39:49.000 2404 2404 533 533 2005-08-03 18:08:49.000 1 1 2020-12-23 07:17:26
10090 2005-07-31 20:22:01.000 4023 4023 533 533 2005-08-04 17:30:01.000 1 1 2020-12-23 07:17:45
10380 2005-08-01 06:34:36.000 2225 2225 533 533 2005-08-02 09:08:36.000 1 1 2020-12-23 07:17:49
10614 2005-08-01 14:57:00.000 232 232 533 533 2005-08-10 09:31:00.000 2 2 2020-12-23 07:17:52
11524 2005-08-17 00:10:55.000 317 317 533 533 2005-08-23 05:30:55.000 1 1 2020-12-23 07:18:05
11758 2005-08-17 09:33:02.000 11 11 533 533 2005-08-24 05:03:02.000 2 2 2020-12-23 07:18:08
11918 2005-08-17 16:08:42.000 2169 2169 533 533 2005-08-20 20:12:42.000 1 1 2020-12-23 07:18:10
12602 2005-08-18 16:49:50.000 2001 2001 533 533 2005-08-21 11:13:50.000 2 2 2020-12-23 07:18:19
12655 2005-08-18 18:57:44.000 859 859 533 533 2005-08-27 22:40:44.000 2 2 2020-12-23 07:18:20
14018 2006-02-14 15:16:03.000 2136 2136 533 533   2 2 2020-12-23 07:18:41
14263 2005-08-21 06:08:15.000 2595 2595 533 533 2005-08-29 09:22:15.000 2 2 2020-12-23 07:18:45
14800 2005-08-22 00:46:18.000 3554 3554 533 533 2005-08-26 01:44:18.000 2 2 2020-12-23 07:18:52
16006 2005-08-23 21:01:09.000 240 240 533 533 2005-08-25 19:33:09.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 10.606ms