home / sakila

rental

32 rows where customer_id = 535

✎ 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
37 2005-05-25 04:44:31.000 403 403 535 535 2005-05-29 01:03:31.000 1 1 2020-12-23 07:15:20
541 2005-05-28 06:41:58.000 1662 1662 535 535 2005-06-02 09:12:58.000 2 2 2020-12-23 07:15:27
778 2005-05-29 14:09:53.000 1816 1816 535 535 2005-06-05 20:05:53.000 1 1 2020-12-23 07:15:30
959 2005-05-30 18:07:00.000 3108 3108 535 535 2005-06-02 14:37:00.000 2 2 2020-12-23 07:15:32
1712 2005-06-16 14:25:09.000 1363 1363 535 535 2005-06-17 17:55:09.000 1 1 2020-12-23 07:15:42
3228 2005-06-21 02:20:24.000 2489 2489 535 535 2005-06-29 00:50:24.000 2 2 2020-12-23 07:16:04
4331 2005-07-07 18:22:30.000 419 419 535 535 2005-07-13 18:20:30.000 1 1 2020-12-23 07:16:21
4718 2005-07-08 12:32:08.000 1653 1653 535 535 2005-07-17 17:34:08.000 2 2 2020-12-23 07:16:26
4743 2005-07-08 13:42:36.000 80 80 535 535 2005-07-11 18:54:36.000 2 2 2020-12-23 07:16:27
4914 2005-07-08 21:30:53.000 298 298 535 535 2005-07-17 01:29:53.000 1 1 2020-12-23 07:16:29
5588 2005-07-10 04:21:10.000 1166 1166 535 535 2005-07-16 02:58:10.000 2 2 2020-12-23 07:16:39
5890 2005-07-10 20:00:25.000 1463 1463 535 535 2005-07-18 17:57:25.000 2 2 2020-12-23 07:16:44
6504 2005-07-12 03:19:14.000 3786 3786 535 535 2005-07-17 01:13:14.000 2 2 2020-12-23 07:16:52
8395 2005-07-29 06:03:30.000 1471 1471 535 535 2005-07-31 09:08:30.000 2 2 2020-12-23 07:17:20
8645 2005-07-29 14:47:45.000 2532 2532 535 535 2005-07-30 14:56:45.000 2 2 2020-12-23 07:17:24
9440 2005-07-30 21:40:15.000 414 414 535 535 2005-08-04 15:45:15.000 2 2 2020-12-23 07:17:36
9524 2005-07-31 01:01:06.000 1796 1796 535 535 2005-08-04 04:06:06.000 2 2 2020-12-23 07:17:37
10322 2005-08-01 04:44:13.000 1543 1543 535 535 2005-08-08 00:20:13.000 2 2 2020-12-23 07:17:48
10353 2005-08-01 05:46:33.000 1446 1446 535 535 2005-08-08 09:14:33.000 1 1 2020-12-23 07:17:49
11736 2005-08-17 08:40:55.000 4217 4217 535 535 2005-08-26 09:03:55.000 1 1 2020-12-23 07:18:08
11855 2005-08-17 13:43:07.000 1062 1062 535 535 2005-08-26 08:07:07.000 1 1 2020-12-23 07:18:09
12168 2005-08-18 01:03:52.000 2859 2859 535 535 2005-08-18 20:19:52.000 1 1 2020-12-23 07:18:14
12233 2005-08-18 03:16:54.000 174 174 535 535 2005-08-22 04:48:54.000 2 2 2020-12-23 07:18:14
12673 2005-08-18 19:21:56.000 4204 4204 535 535 2005-08-26 22:44:56.000 2 2 2020-12-23 07:18:20
12732 2005-08-18 21:57:50.000 3307 3307 535 535 2005-08-19 18:28:50.000 2 2 2020-12-23 07:18:21
12750 2005-08-18 22:32:39.000 3717 3717 535 535 2005-08-26 01:54:39.000 1 1 2020-12-23 07:18:21
13631 2005-08-20 07:07:37.000 1015 1015 535 535 2005-08-22 04:01:37.000 1 1 2020-12-23 07:18:35
13852 2005-08-20 14:45:23.000 85 85 535 535 2005-08-22 16:47:23.000 2 2 2020-12-23 07:18:38
14522 2005-08-21 15:01:34.000 2101 2101 535 535 2005-08-25 16:37:34.000 1 1 2020-12-23 07:18:48
15075 2005-08-22 11:04:52.000 1938 1938 535 535 2005-08-30 05:06:52.000 1 1 2020-12-23 07:18:56
15287 2005-08-22 19:19:37.000 308 308 535 535 2005-08-29 16:05:37.000 1 1 2020-12-23 07:18:59
16017 2005-08-23 21:27:11.000 664 664 535 535 2005-08-24 23:22:11.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 27.318ms