home / sakila

rental

29 rows where customer_id = 363

✎ 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
733 2005-05-29 07:35:21.000 2951 2951 363 363 2005-06-05 09:14:21.000 1 1 2020-12-23 07:15:29
1426 2005-06-15 18:16:24.000 4412 4412 363 363 2005-06-18 22:15:24.000 2 2 2020-12-23 07:15:39
1569 2005-06-16 03:19:09.000 3927 3927 363 363 2005-06-18 21:55:09.000 2 2 2020-12-23 07:15:40
1847 2005-06-17 00:05:22.000 1189 1189 363 363 2005-06-20 21:09:22.000 1 1 2020-12-23 07:15:44
2540 2005-06-19 02:04:48.000 4305 4305 363 363 2005-06-20 22:42:48.000 2 2 2020-12-23 07:15:54
3281 2005-06-21 06:08:47.000 4006 4006 363 363 2005-06-24 11:22:47.000 1 1 2020-12-23 07:16:05
3726 2005-07-06 11:15:49.000 742 742 363 363 2005-07-11 05:54:49.000 2 2 2020-12-23 07:16:11
5687 2005-07-10 09:07:19.000 2170 2170 363 363 2005-07-16 11:17:19.000 2 2 2020-12-23 07:16:41
5758 2005-07-10 12:42:43.000 502 502 363 363 2005-07-16 10:18:43.000 2 2 2020-12-23 07:16:42
6140 2005-07-11 08:40:47.000 2749 2749 363 363 2005-07-14 07:26:47.000 1 1 2020-12-23 07:16:47
6705 2005-07-12 12:53:11.000 4268 4268 363 363 2005-07-13 07:17:11.000 1 1 2020-12-23 07:16:55
6821 2005-07-12 18:22:10.000 623 623 363 363 2005-07-14 13:25:10.000 2 2 2020-12-23 07:16:57
6878 2005-07-12 20:37:13.000 2428 2428 363 363 2005-07-19 20:13:13.000 2 2 2020-12-23 07:16:58
7256 2005-07-27 10:58:32.000 4275 4275 363 363 2005-07-29 08:58:32.000 2 2 2020-12-23 07:17:03
7708 2005-07-28 04:19:15.000 398 398 363 363 2005-08-04 04:41:15.000 1 1 2020-12-23 07:17:10
8121 2005-07-28 19:25:45.000 2229 2229 363 363 2005-08-02 13:30:45.000 2 2 2020-12-23 07:17:16
8522 2005-07-29 10:16:19.000 3636 3636 363 363 2005-08-06 14:58:19.000 1 1 2020-12-23 07:17:22
8804 2005-07-29 21:28:19.000 4461 4461 363 363 2005-08-01 20:15:19.000 2 2 2020-12-23 07:17:26
8841 2005-07-29 22:56:07.000 3935 3935 363 363 2005-08-01 21:21:07.000 2 2 2020-12-23 07:17:27
9968 2005-07-31 16:32:16.000 2666 2666 363 363 2005-08-08 12:23:16.000 1 1 2020-12-23 07:17:43
9977 2005-07-31 16:58:42.000 2300 2300 363 363 2005-08-09 13:34:42.000 1 1 2020-12-23 07:17:43
10339 2005-08-01 05:05:50.000 615 615 363 363 2005-08-10 07:15:50.000 2 2 2020-12-23 07:17:48
12189 2005-08-18 01:51:44.000 1764 1764 363 363 2005-08-26 01:01:44.000 1 1 2020-12-23 07:18:14
12760 2005-08-18 23:03:19.000 4188 4188 363 363 2005-08-24 17:53:19.000 1 1 2020-12-23 07:18:22
13706 2005-08-20 09:32:56.000 3005 3005 363 363 2005-08-28 05:22:56.000 2 2 2020-12-23 07:18:36
14694 2005-08-21 20:46:42.000 2767 2767 363 363 2005-08-23 16:18:42.000 1 1 2020-12-23 07:18:50
14983 2005-08-22 07:32:23.000 3579 3579 363 363 2005-08-30 11:39:23.000 2 2 2020-12-23 07:18:54
15279 2005-08-22 19:08:49.000 1088 1088 363 363 2005-08-30 00:38:49.000 2 2 2020-12-23 07:18:59
15335 2005-08-22 20:44:55.000 1593 1593 363 363 2005-08-28 21:43:55.000 1 1 2020-12-23 07:19:00

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