home / sakila

payment

22 rows where customer_id = 440

✎ 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
11865 440 440 2 2 957 957 4.99 2005-05-30 17:53:29.000 2020-12-23 07:21:58
11866 440 440 1 1 4301 4301 2.99 2005-07-07 16:37:23.000 2020-12-23 07:21:58
11867 440 440 1 1 4946 4946 7.99 2005-07-08 22:46:23.000 2020-12-23 07:21:58
11868 440 440 2 2 5423 5423 2.99 2005-07-09 20:56:48.000 2020-12-23 07:21:58
11869 440 440 2 2 5594 5594 0.99 2005-07-10 04:33:36.000 2020-12-23 07:21:58
11870 440 440 2 2 5731 5731 2.99 2005-07-10 11:31:52.000 2020-12-23 07:21:58
11871 440 440 2 2 5782 5782 0.99 2005-07-10 13:52:56.000 2020-12-23 07:21:58
11872 440 440 2 2 7585 7585 4.99 2005-07-27 23:18:22.000 2020-12-23 07:21:58
11873 440 440 1 1 7614 7614 0.99 2005-07-28 00:14:38.000 2020-12-23 07:21:58
11874 440 440 1 1 7806 7806 9.99 2005-07-28 07:58:17.000 2020-12-23 07:21:58
11875 440 440 1 1 9001 9001 4.99 2005-07-30 04:59:41.000 2020-12-23 07:21:59
11876 440 440 1 1 9195 9195 2.99 2005-07-30 12:29:43.000 2020-12-23 07:21:59
11877 440 440 1 1 9547 9547 4.99 2005-07-31 01:52:34.000 2020-12-23 07:21:59
11878 440 440 2 2 12403 12403 6.99 2005-08-18 09:31:05.000 2020-12-23 07:21:59
11879 440 440 1 1 12850 12850 0.99 2005-08-19 02:08:06.000 2020-12-23 07:21:59
11880 440 440 2 2 13384 13384 4.99 2005-08-19 21:38:51.000 2020-12-23 07:21:59
11881 440 440 2 2 13779 13779 2.99 2005-08-20 12:03:54.000 2020-12-23 07:21:59
11882 440 440 1 1 14555 14555 0.99 2005-08-21 16:03:02.000 2020-12-23 07:21:59
11883 440 440 2 2 14863 14863 7.99 2005-08-22 02:57:04.000 2020-12-23 07:21:59
11884 440 440 2 2 15264 15264 0.99 2005-08-22 18:27:38.000 2020-12-23 07:21:59
11885 440 440 1 1 15925 15925 4.99 2005-08-23 18:15:06.000 2020-12-23 07:21:59
11886 440 440 1 1 13106 13106 4.99 2006-02-14 15:16:03.000 2020-12-23 07:21:59

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.46ms