home / sakila

payment

32 rows where customer_id = 244

✎ 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
6590 244 244 2 2 592 592 4.99 2005-05-28 13:21:08.000 2020-12-23 07:20:42
6591 244 244 1 1 797 797 1.99 2005-05-29 17:12:17.000 2020-12-23 07:20:42
6592 244 244 2 2 1189 1189 6.99 2005-06-15 01:04:22.000 2020-12-23 07:20:42
6593 244 244 1 1 1595 1595 5.99 2005-06-16 05:23:46.000 2020-12-23 07:20:42
6594 244 244 2 2 2955 2955 3.99 2005-06-20 06:46:35.000 2020-12-23 07:20:42
6595 244 244 1 1 4814 4814 4.99 2005-07-08 17:11:09.000 2020-12-23 07:20:42
6596 244 244 2 2 5387 5387 4.99 2005-07-09 19:25:14.000 2020-12-23 07:20:42
6597 244 244 2 2 5461 5461 0.99 2005-07-09 22:48:04.000 2020-12-23 07:20:42
6598 244 244 2 2 5692 5692 0.99 2005-07-10 09:32:22.000 2020-12-23 07:20:42
6599 244 244 1 1 5779 5779 4.99 2005-07-10 13:45:54.000 2020-12-23 07:20:42
6600 244 244 1 1 5803 5803 3.99 2005-07-10 15:05:42.000 2020-12-23 07:20:42
6601 244 244 2 2 6374 6374 4.99 2005-07-11 21:36:10.000 2020-12-23 07:20:42
6602 244 244 2 2 6608 6608 2.99 2005-07-12 08:16:50.000 2020-12-23 07:20:42
6603 244 244 2 2 6683 6683 2.99 2005-07-12 12:14:05.000 2020-12-23 07:20:42
6604 244 244 2 2 8454 8454 0.99 2005-07-29 07:49:04.000 2020-12-23 07:20:42
6605 244 244 2 2 8844 8844 5.99 2005-07-29 23:05:08.000 2020-12-23 07:20:42
6606 244 244 1 1 10001 10001 4.99 2005-07-31 17:46:18.000 2020-12-23 07:20:42
6607 244 244 2 2 10047 10047 4.99 2005-07-31 19:07:43.000 2020-12-23 07:20:42
6608 244 244 1 1 10152 10152 5.99 2005-07-31 22:28:05.000 2020-12-23 07:20:42
6609 244 244 2 2 10684 10684 6.99 2005-08-01 17:47:00.000 2020-12-23 07:20:42
6610 244 244 2 2 10969 10969 2.99 2005-08-02 04:04:32.000 2020-12-23 07:20:42
6611 244 244 2 2 11157 11157 0.99 2005-08-02 09:58:15.000 2020-12-23 07:20:42
6612 244 244 1 1 11267 11267 9.99 2005-08-02 14:09:08.000 2020-12-23 07:20:42
6613 244 244 1 1 11762 11762 9.99 2005-08-17 09:48:06.000 2020-12-23 07:20:42
6614 244 244 1 1 13630 13630 4.99 2005-08-20 07:05:56.000 2020-12-23 07:20:42
6615 244 244 2 2 13774 13774 0.99 2005-08-20 11:54:01.000 2020-12-23 07:20:42
6616 244 244 1 1 13928 13928 0.99 2005-08-20 17:12:28.000 2020-12-23 07:20:42
6617 244 244 1 1 14367 14367 0.99 2005-08-21 09:31:44.000 2020-12-23 07:20:42
6618 244 244 2 2 14657 14657 0.99 2005-08-21 19:39:43.000 2020-12-23 07:20:42
6619 244 244 1 1 14919 14919 1.99 2005-08-22 05:07:17.000 2020-12-23 07:20:42
6620 244 244 1 1 14975 14975 3.99 2005-08-22 07:07:50.000 2020-12-23 07:20:42
6621 244 244 2 2 12736 12736 4.99 2006-02-14 15:16:03.000 2020-12-23 07:20:42

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