home / sakila

payment

21 rows where customer_id = 545

✎ 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
14639 545 545 2 2 248 248 0.99 2005-05-26 14:07:58.000 2020-12-23 07:22:35
14640 545 545 2 2 715 715 3.99 2005-05-29 04:22:41.000 2020-12-23 07:22:35
14641 545 545 1 1 2123 2123 2.99 2005-06-17 20:48:30.000 2020-12-23 07:22:35
14642 545 545 2 2 3693 3693 8.99 2005-07-06 09:56:09.000 2020-12-23 07:22:35
14643 545 545 1 1 3975 3975 5.99 2005-07-06 23:00:09.000 2020-12-23 07:22:35
14644 545 545 1 1 4597 4597 5.99 2005-07-08 06:43:42.000 2020-12-23 07:22:35
14645 545 545 1 1 5264 5264 0.99 2005-07-09 14:11:28.000 2020-12-23 07:22:35
14646 545 545 1 1 7078 7078 5.99 2005-07-27 04:16:37.000 2020-12-23 07:22:35
14647 545 545 2 2 8599 8599 3.99 2005-07-29 12:58:52.000 2020-12-23 07:22:36
14648 545 545 2 2 8848 8848 2.99 2005-07-29 23:20:58.000 2020-12-23 07:22:36
14649 545 545 2 2 9810 9810 2.99 2005-07-31 11:22:41.000 2020-12-23 07:22:36
14650 545 545 2 2 9942 9942 4.99 2005-07-31 15:35:43.000 2020-12-23 07:22:36
14651 545 545 2 2 10931 10931 2.99 2005-08-02 02:44:59.000 2020-12-23 07:22:36
14652 545 545 2 2 11760 11760 2.99 2005-08-17 09:44:22.000 2020-12-23 07:22:36
14653 545 545 1 1 12098 12098 4.99 2005-08-17 22:38:31.000 2020-12-23 07:22:36
14654 545 545 1 1 12349 12349 2.99 2005-08-18 07:23:42.000 2020-12-23 07:22:36
14655 545 545 2 2 12667 12667 10.99 2005-08-18 19:11:45.000 2020-12-23 07:22:36
14656 545 545 1 1 12800 12800 2.99 2005-08-19 00:27:11.000 2020-12-23 07:22:36
14657 545 545 1 1 13595 13595 4.99 2005-08-20 05:54:27.000 2020-12-23 07:22:36
14658 545 545 1 1 15585 15585 0.99 2005-08-23 05:55:22.000 2020-12-23 07:22:36
14659 545 545 2 2 15998 15998 4.99 2005-08-23 20:41:09.000 2020-12-23 07:22:36

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