home / sakila

payment

22 rows where customer_id = 554

✎ 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
14851 554 554 1 1 607 607 2.99 2005-05-28 15:02:41.000 2020-12-23 07:22:38
14852 554 554 1 1 817 817 2.99 2005-05-29 20:39:14.000 2020-12-23 07:22:38
14853 554 554 1 1 1959 1959 4.99 2005-06-17 08:54:10.000 2020-12-23 07:22:39
14854 554 554 1 1 2279 2279 6.99 2005-06-18 06:38:22.000 2020-12-23 07:22:39
14855 554 554 2 2 3278 3278 2.99 2005-06-21 05:41:30.000 2020-12-23 07:22:39
14856 554 554 1 1 3312 3312 6.99 2005-06-21 08:05:32.000 2020-12-23 07:22:39
14857 554 554 2 2 4902 4902 4.99 2005-07-08 20:49:30.000 2020-12-23 07:22:39
14858 554 554 1 1 5527 5527 2.99 2005-07-10 02:06:01.000 2020-12-23 07:22:39
14859 554 554 1 1 5968 5968 5.99 2005-07-11 00:03:11.000 2020-12-23 07:22:39
14860 554 554 1 1 6144 6144 2.99 2005-07-11 09:02:53.000 2020-12-23 07:22:39
14861 554 554 1 1 10612 10612 6.99 2005-08-01 14:55:31.000 2020-12-23 07:22:39
14862 554 554 2 2 10829 10829 7.99 2005-08-01 23:17:06.000 2020-12-23 07:22:39
14863 554 554 2 2 11589 11589 9.99 2005-08-17 02:28:22.000 2020-12-23 07:22:39
14864 554 554 1 1 11873 11873 0.99 2005-08-17 14:14:39.000 2020-12-23 07:22:39
14865 554 554 1 1 12010 12010 8.99 2005-08-17 19:17:54.000 2020-12-23 07:22:39
14866 554 554 1 1 12014 12014 0.99 2005-08-17 19:29:44.000 2020-12-23 07:22:39
14867 554 554 2 2 13139 13139 4.99 2005-08-19 12:32:10.000 2020-12-23 07:22:39
14868 554 554 2 2 14015 14015 2.99 2005-08-20 20:47:43.000 2020-12-23 07:22:39
14869 554 554 1 1 14098 14098 3.99 2005-08-21 00:30:32.000 2020-12-23 07:22:39
14870 554 554 1 1 14469 14469 0.99 2005-08-21 13:07:24.000 2020-12-23 07:22:39
14871 554 554 1 1 14626 14626 2.99 2005-08-21 18:35:44.000 2020-12-23 07:22:39
14872 554 554 2 2 15690 15690 4.99 2005-08-23 09:53:30.000 2020-12-23 07:22:39

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