home / sakila

payment

21 rows where customer_id = 399

✎ 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
10785 399 399 2 2 10 10 5.99 2005-05-25 00:02:21.000 2020-12-23 07:21:43
10786 399 399 2 2 694 694 6.99 2005-05-29 01:49:43.000 2020-12-23 07:21:43
10787 399 399 2 2 883 883 4.99 2005-05-30 06:21:05.000 2020-12-23 07:21:44
10788 399 399 2 2 2961 2961 2.99 2005-06-20 07:29:15.000 2020-12-23 07:21:44
10789 399 399 1 1 3036 3036 5.99 2005-06-20 12:18:31.000 2020-12-23 07:21:44
10790 399 399 2 2 4957 4957 0.99 2005-07-08 23:18:48.000 2020-12-23 07:21:44
10791 399 399 2 2 4981 4981 4.99 2005-07-09 00:29:29.000 2020-12-23 07:21:44
10792 399 399 1 1 5507 5507 0.99 2005-07-10 00:49:04.000 2020-12-23 07:21:44
10793 399 399 2 2 6006 6006 2.99 2005-07-11 01:38:42.000 2020-12-23 07:21:44
10794 399 399 2 2 6229 6229 6.99 2005-07-11 13:59:50.000 2020-12-23 07:21:44
10795 399 399 2 2 6674 6674 4.99 2005-07-12 11:51:54.000 2020-12-23 07:21:44
10796 399 399 2 2 8461 8461 5.99 2005-07-29 08:11:31.000 2020-12-23 07:21:44
10797 399 399 2 2 9728 9728 2.99 2005-07-31 08:40:54.000 2020-12-23 07:21:44
10798 399 399 2 2 10654 10654 2.99 2005-08-01 16:31:35.000 2020-12-23 07:21:44
10799 399 399 2 2 10960 10960 5.99 2005-08-02 03:46:18.000 2020-12-23 07:21:44
10800 399 399 1 1 11329 11329 4.99 2005-08-02 16:42:52.000 2020-12-23 07:21:44
10801 399 399 1 1 11953 11953 3.99 2005-08-17 17:16:42.000 2020-12-23 07:21:44
10802 399 399 1 1 13253 13253 4.99 2005-08-19 16:53:56.000 2020-12-23 07:21:44
10803 399 399 2 2 13293 13293 4.99 2005-08-19 18:35:52.000 2020-12-23 07:21:44
10804 399 399 1 1 15300 15300 0.99 2005-08-22 19:44:00.000 2020-12-23 07:21:44
10805 399 399 1 1 15468 15468 4.99 2005-08-23 01:25:30.000 2020-12-23 07:21:44

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