home / sakila

payment

19 rows where customer_id = 548

✎ 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
14709 548 548 2 2 177 177 6.99 2005-05-26 04:14:29.000 2020-12-23 07:22:36
14710 548 548 1 1 743 743 4.99 2005-05-29 08:39:02.000 2020-12-23 07:22:36
14711 548 548 2 2 872 872 3.99 2005-05-30 05:03:04.000 2020-12-23 07:22:36
14712 548 548 1 1 1326 1326 1.99 2005-06-15 11:07:39.000 2020-12-23 07:22:36
14713 548 548 1 1 2280 2280 2.99 2005-06-18 06:46:54.000 2020-12-23 07:22:37
14714 548 548 2 2 2978 2978 0.99 2005-06-20 08:25:16.000 2020-12-23 07:22:37
14715 548 548 1 1 3686 3686 2.99 2005-07-06 09:37:50.000 2020-12-23 07:22:37
14716 548 548 2 2 3777 3777 2.99 2005-07-06 13:36:48.000 2020-12-23 07:22:37
14717 548 548 1 1 4155 4155 7.99 2005-07-07 09:00:49.000 2020-12-23 07:22:37
14718 548 548 2 2 5138 5138 4.99 2005-07-09 08:00:46.000 2020-12-23 07:22:37
14719 548 548 2 2 6490 6490 4.99 2005-07-12 02:28:03.000 2020-12-23 07:22:37
14720 548 548 1 1 9614 9614 5.99 2005-07-31 03:59:31.000 2020-12-23 07:22:37
14721 548 548 2 2 10318 10318 0.99 2005-08-01 04:36:53.000 2020-12-23 07:22:37
14722 548 548 1 1 12860 12860 5.99 2005-08-19 02:24:41.000 2020-12-23 07:22:37
14723 548 548 1 1 13691 13691 3.99 2005-08-20 09:07:39.000 2020-12-23 07:22:37
14724 548 548 2 2 13730 13730 7.99 2005-08-20 10:17:09.000 2020-12-23 07:22:37
14725 548 548 2 2 14188 14188 0.99 2005-08-21 03:32:04.000 2020-12-23 07:22:37
14726 548 548 2 2 14723 14723 6.99 2005-08-21 21:52:32.000 2020-12-23 07:22:37
14727 548 548 1 1 13584 13584 0.99 2006-02-14 15:16:03.000 2020-12-23 07:22:37

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