home / sakila

rental

32 rows where customer_id = 141

✎ 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
930 2005-05-30 12:44:57.000 2835 2835 141 141 2005-06-04 10:53:57.000 2 2 2020-12-23 07:15:32
1242 2005-06-15 05:05:07.000 821 821 141 141 2005-06-22 04:57:07.000 1 1 2020-12-23 07:15:36
2895 2005-06-20 02:26:31.000 4445 4445 141 141 2005-06-27 23:42:31.000 2 2 2020-12-23 07:15:59
3434 2005-06-21 19:08:28.000 2295 2295 141 141 2005-06-23 14:25:28.000 1 1 2020-12-23 07:16:07
4057 2005-07-07 04:00:20.000 2838 2838 141 141 2005-07-12 08:14:20.000 1 1 2020-12-23 07:16:16
4297 2005-07-07 16:24:09.000 882 882 141 141 2005-07-13 15:08:09.000 2 2 2020-12-23 07:16:20
4656 2005-07-08 09:50:10.000 839 839 141 141 2005-07-13 15:00:10.000 1 1 2020-12-23 07:16:25
5062 2005-07-09 04:36:49.000 2190 2190 141 141 2005-07-10 06:26:49.000 1 1 2020-12-23 07:16:32
5769 2005-07-10 13:17:58.000 4052 4052 141 141 2005-07-11 11:32:58.000 1 1 2020-12-23 07:16:42
6979 2005-07-27 00:49:53.000 1001 1001 141 141 2005-07-31 03:59:53.000 2 2 2020-12-23 07:16:59
7878 2005-07-28 10:27:10.000 1564 1564 141 141 2005-07-29 11:22:10.000 1 1 2020-12-23 07:17:13
8434 2005-07-29 07:20:14.000 40 40 141 141 2005-07-30 08:50:14.000 2 2 2020-12-23 07:17:21
9073 2005-07-30 07:49:56.000 2185 2185 141 141 2005-08-05 06:25:56.000 2 2 2020-12-23 07:17:30
9584 2005-07-31 03:05:48.000 419 419 141 141 2005-08-01 05:50:48.000 2 2 2020-12-23 07:17:38
9683 2005-07-31 06:47:13.000 856 856 141 141 2005-08-04 05:52:13.000 2 2 2020-12-23 07:17:39
10287 2005-08-01 03:37:01.000 125 125 141 141 2005-08-05 23:03:01.000 2 2 2020-12-23 07:17:48
10379 2005-08-01 06:34:29.000 3103 3103 141 141 2005-08-06 07:49:29.000 1 1 2020-12-23 07:17:49
10798 2005-08-01 22:03:10.000 382 382 141 141 2005-08-08 01:34:10.000 1 1 2020-12-23 07:17:55
11411 2005-08-02 19:29:47.000 1497 1497 141 141 2005-08-09 16:27:47.000 2 2 2020-12-23 07:18:03
11412 2005-08-02 19:32:51.000 2271 2271 141 141 2005-08-11 22:16:51.000 1 1 2020-12-23 07:18:03
12032 2005-08-17 20:14:26.000 1106 1106 141 141 2005-08-26 16:01:26.000 1 1 2020-12-23 07:18:12
12093 2005-08-17 22:28:40.000 216 216 141 141 2005-08-22 02:05:40.000 1 1 2020-12-23 07:18:13
12107 2005-08-17 22:56:24.000 1060 1060 141 141 2005-08-24 19:36:24.000 1 1 2020-12-23 07:18:13
12353 2005-08-18 07:33:08.000 1594 1594 141 141 2005-08-21 03:42:08.000 2 2 2020-12-23 07:18:16
13000 2005-08-19 07:36:42.000 2341 2341 141 141 2005-08-22 08:50:42.000 1 1 2020-12-23 07:18:25
13169 2005-08-19 13:43:35.000 1709 1709 141 141 2005-08-26 09:31:35.000 1 1 2020-12-23 07:18:28
13470 2005-08-20 01:01:16.000 3097 3097 141 141 2005-08-21 03:19:16.000 1 1 2020-12-23 07:18:32
14059 2005-08-20 22:24:44.000 2045 2045 141 141 2005-08-26 21:25:44.000 2 2 2020-12-23 07:18:42
14112 2005-08-21 01:00:46.000 734 734 141 141 2005-08-27 03:46:46.000 1 1 2020-12-23 07:18:42
15013 2005-08-22 08:42:45.000 141 141 141 141 2005-08-24 05:20:45.000 2 2 2020-12-23 07:18:55
15309 2005-08-22 19:54:52.000 2743 2743 141 141 2005-08-24 23:00:52.000 2 2 2020-12-23 07:18:59
15964 2005-08-23 19:45:25.000 251 251 141 141 2005-08-26 22:43:25.000 2 2 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 11.343ms