home / sakila

payment

22 rows where customer_id = 81

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

Suggested facets: staff_id, amount, last_update, payment_date (date), last_update (date)

payment_id ▼ customer_id staff_id rental_id amount payment_date last_update
2196 81 81 1 1 289 289 0.99 2005-05-26 20:01:09.000 2020-12-23 07:19:40
2197 81 81 1 1 2714 2714 1.99 2005-06-19 14:26:09.000 2020-12-23 07:19:40
2198 81 81 1 1 2854 2854 5.99 2005-06-19 23:11:48.000 2020-12-23 07:19:40
2199 81 81 1 1 3229 3229 4.99 2005-06-21 02:20:41.000 2020-12-23 07:19:40
2200 81 81 1 1 3879 3879 2.99 2005-07-06 18:31:20.000 2020-12-23 07:19:40
2201 81 81 2 2 4983 4983 9.99 2005-07-09 00:34:16.000 2020-12-23 07:19:40
2202 81 81 1 1 5468 5468 0.99 2005-07-09 23:06:09.000 2020-12-23 07:19:40
2203 81 81 2 2 7130 7130 4.99 2005-07-27 06:23:36.000 2020-12-23 07:19:41
2204 81 81 1 1 7709 7709 0.99 2005-07-28 04:22:14.000 2020-12-23 07:19:41
2205 81 81 2 2 9454 9454 3.99 2005-07-30 22:20:09.000 2020-12-23 07:19:41
2206 81 81 2 2 10456 10456 0.99 2005-08-01 09:17:21.000 2020-12-23 07:19:41
2207 81 81 1 1 11837 11837 5.99 2005-08-17 13:04:41.000 2020-12-23 07:19:41
2208 81 81 2 2 12181 12181 4.99 2005-08-18 01:28:18.000 2020-12-23 07:19:41
2209 81 81 2 2 13820 13820 5.99 2005-08-20 13:26:37.000 2020-12-23 07:19:41
2210 81 81 1 1 14128 14128 4.99 2005-08-21 01:35:58.000 2020-12-23 07:19:41
2211 81 81 1 1 14642 14642 3.99 2005-08-21 19:09:40.000 2020-12-23 07:19:41
2212 81 81 2 2 14748 14748 7.99 2005-08-21 23:02:02.000 2020-12-23 07:19:41
2213 81 81 1 1 15224 15224 5.99 2005-08-22 17:18:05.000 2020-12-23 07:19:41
2214 81 81 1 1 15602 15602 4.99 2005-08-23 06:41:07.000 2020-12-23 07:19:41
2215 81 81 1 1 15823 15823 4.99 2005-08-23 15:08:00.000 2020-12-23 07:19:41
2216 81 81 1 1 15858 15858 2.99 2005-08-23 16:07:15.000 2020-12-23 07:19:41
2217 81 81 2 2 15884 15884 1.99 2005-08-23 16:45:28.000 2020-12-23 07:19:41

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE payment (
  payment_id int NOT NULL,
  customer_id INT  NOT NULL,
  staff_id SMALLINT NOT NULL,
  rental_id INT DEFAULT NULL,
  amount DECIMAL(5,2) NOT NULL,
  payment_date TIMESTAMP NOT NULL,
  last_update TIMESTAMP NOT NULL,
  PRIMARY KEY  (payment_id),
  CONSTRAINT fk_payment_rental FOREIGN KEY (rental_id) REFERENCES rental (rental_id) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT fk_payment_customer FOREIGN KEY (customer_id) REFERENCES customer (customer_id) ,
  CONSTRAINT fk_payment_staff FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
);
CREATE INDEX idx_fk_staff_id ON payment(staff_id)
;
CREATE INDEX idx_fk_customer_id ON payment(customer_id)
;
Powered by Datasette · Queries took 12.095ms