home / sakila

payment

20 rows where customer_id = 549

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

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

payment_id ▼ customer_id staff_id rental_id amount payment_date last_update
14728 549 549 1 1 6 6 0.99 2005-05-24 23:08:07.000 2020-12-23 07:22:37
14729 549 549 2 2 852 852 4.99 2005-05-30 01:36:57.000 2020-12-23 07:22:37
14730 549 549 1 1 906 906 3.99 2005-05-30 10:30:38.000 2020-12-23 07:22:37
14731 549 549 2 2 1086 1086 4.99 2005-05-31 11:17:37.000 2020-12-23 07:22:37
14732 549 549 1 1 2050 2050 2.99 2005-06-17 15:07:30.000 2020-12-23 07:22:37
14733 549 549 2 2 3523 3523 2.99 2005-07-06 01:01:38.000 2020-12-23 07:22:37
14734 549 549 2 2 3892 3892 4.99 2005-07-06 18:58:58.000 2020-12-23 07:22:37
14735 549 549 1 1 4447 4447 0.99 2005-07-07 23:15:28.000 2020-12-23 07:22:37
14736 549 549 1 1 7252 7252 7.99 2005-07-27 10:45:28.000 2020-12-23 07:22:37
14737 549 549 2 2 8239 8239 0.99 2005-07-29 00:31:39.000 2020-12-23 07:22:37
14738 549 549 1 1 8316 8316 4.99 2005-07-29 03:38:49.000 2020-12-23 07:22:37
14739 549 549 2 2 9445 9445 7.99 2005-07-30 21:50:42.000 2020-12-23 07:22:37
14740 549 549 2 2 9511 9511 9.99 2005-07-31 00:25:05.000 2020-12-23 07:22:37
14741 549 549 2 2 9887 9887 0.99 2005-07-31 14:00:32.000 2020-12-23 07:22:37
14742 549 549 2 2 10281 10281 0.99 2005-08-01 03:28:33.000 2020-12-23 07:22:37
14743 549 549 2 2 11737 11737 4.99 2005-08-17 08:42:08.000 2020-12-23 07:22:37
14744 549 549 2 2 11878 11878 2.99 2005-08-17 14:23:52.000 2020-12-23 07:22:37
14745 549 549 2 2 12634 12634 2.99 2005-08-18 17:58:14.000 2020-12-23 07:22:37
14746 549 549 2 2 12747 12747 4.99 2005-08-18 22:28:22.000 2020-12-23 07:22:37
14747 549 549 1 1 14434 14434 0.99 2005-08-21 11:40:46.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.908ms