home / sakila

payment

33 rows where customer_id = 64

✎ 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
1734 64 64 1 1 494 494 4.99 2005-05-28 00:39:31.000 2020-12-23 07:19:34
1735 64 64 1 1 587 587 0.99 2005-05-28 12:05:33.000 2020-12-23 07:19:34
1736 64 64 1 1 1001 1001 2.99 2005-05-31 00:46:31.000 2020-12-23 07:19:34
1737 64 64 2 2 1335 1335 0.99 2005-06-15 11:51:30.000 2020-12-23 07:19:34
1738 64 64 1 1 2060 2060 2.99 2005-06-17 15:42:42.000 2020-12-23 07:19:34
1739 64 64 2 2 3982 3982 0.99 2005-07-06 23:14:16.000 2020-12-23 07:19:34
1740 64 64 1 1 4288 4288 4.99 2005-07-07 15:38:25.000 2020-12-23 07:19:34
1741 64 64 1 1 4690 4690 1.99 2005-07-08 11:04:02.000 2020-12-23 07:19:34
1742 64 64 2 2 4819 4819 5.99 2005-07-08 17:19:15.000 2020-12-23 07:19:34
1743 64 64 2 2 4971 4971 5.99 2005-07-08 23:54:49.000 2020-12-23 07:19:34
1744 64 64 1 1 5114 5114 3.99 2005-07-09 07:07:05.000 2020-12-23 07:19:34
1745 64 64 2 2 5279 5279 2.99 2005-07-09 14:46:36.000 2020-12-23 07:19:34
1746 64 64 1 1 5432 5432 0.99 2005-07-09 21:21:25.000 2020-12-23 07:19:34
1747 64 64 2 2 6372 6372 2.99 2005-07-11 21:35:06.000 2020-12-23 07:19:34
1748 64 64 2 2 6457 6457 0.99 2005-07-12 01:06:35.000 2020-12-23 07:19:34
1749 64 64 2 2 6698 6698 1.99 2005-07-12 12:45:00.000 2020-12-23 07:19:34
1750 64 64 2 2 6744 6744 0.99 2005-07-12 14:30:28.000 2020-12-23 07:19:34
1751 64 64 2 2 7045 7045 0.99 2005-07-27 03:27:35.000 2020-12-23 07:19:34
1752 64 64 1 1 7082 7082 2.99 2005-07-27 04:27:32.000 2020-12-23 07:19:34
1753 64 64 1 1 7476 7476 1.99 2005-07-27 19:08:56.000 2020-12-23 07:19:34
1754 64 64 2 2 8602 8602 4.99 2005-07-29 13:04:27.000 2020-12-23 07:19:34
1755 64 64 1 1 9832 9832 2.99 2005-07-31 12:01:49.000 2020-12-23 07:19:34
1756 64 64 1 1 9880 9880 6.99 2005-07-31 13:49:02.000 2020-12-23 07:19:34
1757 64 64 1 1 9924 9924 3.99 2005-07-31 15:04:57.000 2020-12-23 07:19:34
1758 64 64 2 2 10185 10185 0.99 2005-08-01 00:12:11.000 2020-12-23 07:19:34
1759 64 64 2 2 10714 10714 4.99 2005-08-01 18:51:29.000 2020-12-23 07:19:34
1760 64 64 1 1 10889 10889 4.99 2005-08-02 00:54:33.000 2020-12-23 07:19:34
1761 64 64 1 1 12409 12409 0.99 2005-08-18 09:43:58.000 2020-12-23 07:19:34
1762 64 64 1 1 13773 13773 2.99 2005-08-20 11:50:14.000 2020-12-23 07:19:34
1763 64 64 1 1 13971 13971 0.99 2005-08-20 18:44:53.000 2020-12-23 07:19:34
1764 64 64 1 1 14167 14167 5.99 2005-08-21 02:59:48.000 2020-12-23 07:19:34
1765 64 64 2 2 14316 14316 0.99 2005-08-21 07:59:47.000 2020-12-23 07:19:34
1766 64 64 2 2 13333 13333 4.99 2006-02-14 15:16:03.000 2020-12-23 07:19:34

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