home / sakila

rental

32 rows where customer_id = 362

✎ 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
1035 2005-05-31 05:01:09.000 949 949 362 362 2005-06-02 03:59:09.000 1 1 2020-12-23 07:15:33
1429 2005-06-15 18:24:10.000 4116 4116 362 362 2005-06-18 16:30:10.000 1 1 2020-12-23 07:15:39
1529 2005-06-16 00:37:35.000 1688 1688 362 362 2005-06-22 18:58:35.000 2 2 2020-12-23 07:15:40
1615 2005-06-16 07:00:28.000 3894 3894 362 362 2005-06-25 08:53:28.000 1 1 2020-12-23 07:15:41
3197 2005-06-21 00:07:23.000 1811 1811 362 362 2005-06-23 00:53:23.000 2 2 2020-12-23 07:16:03
3393 2005-06-21 15:14:27.000 1631 1631 362 362 2005-06-25 19:54:27.000 2 2 2020-12-23 07:16:06
4646 2005-07-08 09:23:26.000 618 618 362 362 2005-07-16 04:03:26.000 1 1 2020-12-23 07:16:25
5227 2005-07-09 12:16:39.000 1862 1862 362 362 2005-07-18 15:38:39.000 2 2 2020-12-23 07:16:34
5563 2005-07-10 03:21:02.000 2258 2258 362 362 2005-07-14 07:40:02.000 1 1 2020-12-23 07:16:39
5690 2005-07-10 09:26:49.000 1326 1326 362 362 2005-07-19 07:17:49.000 2 2 2020-12-23 07:16:41
6204 2005-07-11 12:29:22.000 2572 2572 362 362 2005-07-13 10:41:22.000 2 2 2020-12-23 07:16:48
6576 2005-07-12 06:13:41.000 339 339 362 362 2005-07-16 03:22:41.000 1 1 2020-12-23 07:16:53
6981 2005-07-27 00:51:38.000 154 154 362 362 2005-07-28 01:06:38.000 2 2 2020-12-23 07:16:59
7172 2005-07-27 07:59:16.000 2405 2405 362 362 2005-08-01 04:46:16.000 1 1 2020-12-23 07:17:02
7485 2005-07-27 19:29:09.000 631 631 362 362 2005-07-30 16:28:09.000 1 1 2020-12-23 07:17:07
8081 2005-07-28 18:06:46.000 4404 4404 362 362 2005-08-04 18:54:46.000 1 1 2020-12-23 07:17:16
8325 2005-07-29 03:57:27.000 932 932 362 362 2005-08-06 22:30:27.000 1 1 2020-12-23 07:17:19
8364 2005-07-29 05:10:31.000 1361 1361 362 362 2005-07-30 04:02:31.000 2 2 2020-12-23 07:17:20
8662 2005-07-29 15:31:33.000 3758 3758 362 362 2005-07-30 09:39:33.000 2 2 2020-12-23 07:17:24
8714 2005-07-29 17:31:40.000 4547 4547 362 362 2005-08-04 16:12:40.000 2 2 2020-12-23 07:17:25
9784 2005-07-31 10:21:32.000 2761 2761 362 362 2005-08-07 09:20:32.000 2 2 2020-12-23 07:17:41
10546 2005-08-01 12:44:17.000 1589 1589 362 362 2005-08-06 16:26:17.000 2 2 2020-12-23 07:17:51
12244 2005-08-18 03:39:11.000 4441 4441 362 362 2005-08-21 02:57:11.000 2 2 2020-12-23 07:18:15
12854 2005-08-19 02:18:51.000 4577 4577 362 362 2005-08-24 04:16:51.000 2 2 2020-12-23 07:18:23
13603 2005-08-20 06:02:48.000 937 937 362 362 2005-08-29 09:39:48.000 1 1 2020-12-23 07:18:34
14051 2005-08-20 22:09:51.000 4012 4012 362 362 2005-08-29 04:04:51.000 2 2 2020-12-23 07:18:41
14129 2005-08-21 01:42:15.000 3572 3572 362 362 2005-08-23 20:04:15.000 2 2 2020-12-23 07:18:43
14336 2005-08-21 08:33:42.000 3166 3166 362 362 2005-08-23 03:27:42.000 1 1 2020-12-23 07:18:46
14752 2005-08-21 23:11:42.000 1252 1252 362 362 2005-08-28 22:12:42.000 1 1 2020-12-23 07:18:51
14759 2005-08-21 23:28:58.000 3871 3871 362 362 2005-08-31 00:35:58.000 2 2 2020-12-23 07:18:51
14808 2005-08-22 00:58:35.000 1657 1657 362 362 2005-08-29 20:16:35.000 2 2 2020-12-23 07:18:52
14950 2005-08-22 06:17:12.000 635 635 362 362 2005-08-27 08:48:12.000 2 2 2020-12-23 07:18:54

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