home / sakila

payment

32 rows where customer_id = 550

✎ 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
14748 550 550 2 2 922 922 7.99 2005-05-30 11:55:55.000 2020-12-23 07:22:37
14749 550 550 1 1 1233 1233 6.99 2005-06-15 04:18:37.000 2020-12-23 07:22:37
14750 550 550 1 1 1863 1863 3.99 2005-06-17 01:31:46.000 2020-12-23 07:22:37
14751 550 550 2 2 1883 1883 4.99 2005-06-17 03:18:51.000 2020-12-23 07:22:37
14752 550 550 1 1 3154 3154 2.99 2005-06-20 20:44:40.000 2020-12-23 07:22:37
14753 550 550 2 2 3236 3236 9.99 2005-06-21 02:47:43.000 2020-12-23 07:22:37
14754 550 550 1 1 3272 3272 10.99 2005-06-21 05:18:27.000 2020-12-23 07:22:37
14755 550 550 1 1 3979 3979 4.99 2005-07-06 23:04:35.000 2020-12-23 07:22:37
14756 550 550 1 1 5727 5727 4.99 2005-07-10 11:25:28.000 2020-12-23 07:22:37
14757 550 550 1 1 6695 6695 2.99 2005-07-12 12:39:39.000 2020-12-23 07:22:37
14758 550 550 1 1 7030 7030 0.99 2005-07-27 03:01:40.000 2020-12-23 07:22:37
14759 550 550 2 2 7838 7838 2.99 2005-07-28 09:00:21.000 2020-12-23 07:22:37
14760 550 550 1 1 8628 8628 6.99 2005-07-29 14:06:24.000 2020-12-23 07:22:37
14761 550 550 2 2 8838 8838 2.99 2005-07-29 22:52:23.000 2020-12-23 07:22:37
14762 550 550 1 1 8959 8959 8.99 2005-07-30 03:35:49.000 2020-12-23 07:22:37
14763 550 550 1 1 9616 9616 2.99 2005-07-31 04:05:01.000 2020-12-23 07:22:37
14764 550 550 1 1 9748 9748 0.99 2005-07-31 09:17:56.000 2020-12-23 07:22:37
14765 550 550 2 2 10140 10140 4.99 2005-07-31 22:03:20.000 2020-12-23 07:22:37
14766 550 550 1 1 11246 11246 2.99 2005-08-02 13:33:56.000 2020-12-23 07:22:37
14767 550 550 2 2 11320 11320 0.99 2005-08-02 16:13:28.000 2020-12-23 07:22:37
14768 550 550 1 1 11969 11969 4.99 2005-08-17 17:49:37.000 2020-12-23 07:22:37
14769 550 550 1 1 12063 12063 2.99 2005-08-17 21:24:48.000 2020-12-23 07:22:37
14770 550 550 2 2 12077 12077 4.99 2005-08-17 21:59:14.000 2020-12-23 07:22:37
14771 550 550 1 1 13114 13114 10.99 2005-08-19 11:27:32.000 2020-12-23 07:22:37
14772 550 550 2 2 14071 14071 2.99 2005-08-20 23:01:56.000 2020-12-23 07:22:37
14773 550 550 2 2 14127 14127 4.99 2005-08-21 01:33:32.000 2020-12-23 07:22:37
14774 550 550 2 2 14375 14375 6.99 2005-08-21 09:46:35.000 2020-12-23 07:22:37
14775 550 550 1 1 14687 14687 4.99 2005-08-21 20:32:16.000 2020-12-23 07:22:37
14776 550 550 2 2 15431 15431 9.99 2005-08-23 00:26:47.000 2020-12-23 07:22:37
14777 550 550 1 1 15883 15883 0.99 2005-08-23 16:44:56.000 2020-12-23 07:22:37
14778 550 550 2 2 15977 15977 4.99 2005-08-23 20:07:10.000 2020-12-23 07:22:37
14779 550 550 2 2 11757 11757 2.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 22.281ms