home / sakila

payment

20 rows where customer_id = 250

✎ 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
6737 250 250 1 1 61 61 5.99 2005-05-25 09:01:57.000 2020-12-23 07:20:44
6738 250 250 1 1 176 176 3.99 2005-05-26 03:47:39.000 2020-12-23 07:20:44
6739 250 250 1 1 637 637 4.99 2005-05-28 18:14:29.000 2020-12-23 07:20:44
6740 250 250 2 2 687 687 0.99 2005-05-29 00:32:09.000 2020-12-23 07:20:44
6741 250 250 1 1 1146 1146 2.99 2005-05-31 20:34:45.000 2020-12-23 07:20:44
6742 250 250 1 1 2432 2432 4.99 2005-06-18 17:59:18.000 2020-12-23 07:20:44
6743 250 250 1 1 3635 3635 4.99 2005-07-06 06:55:36.000 2020-12-23 07:20:44
6744 250 250 1 1 3951 3951 3.99 2005-07-06 21:50:41.000 2020-12-23 07:20:44
6745 250 250 1 1 5479 5479 2.99 2005-07-09 23:47:33.000 2020-12-23 07:20:44
6746 250 250 1 1 5540 5540 0.99 2005-07-10 02:44:21.000 2020-12-23 07:20:44
6747 250 250 1 1 5998 5998 2.99 2005-07-11 01:20:46.000 2020-12-23 07:20:44
6748 250 250 1 1 8579 8579 2.99 2005-07-29 11:59:22.000 2020-12-23 07:20:44
6749 250 250 2 2 9099 9099 0.99 2005-07-30 08:45:48.000 2020-12-23 07:20:44
6750 250 250 2 2 10604 10604 4.99 2005-08-01 14:35:08.000 2020-12-23 07:20:44
6751 250 250 1 1 12361 12361 0.99 2005-08-18 07:47:31.000 2020-12-23 07:20:44
6752 250 250 1 1 12810 12810 0.99 2005-08-19 00:44:10.000 2020-12-23 07:20:44
6753 250 250 2 2 14565 14565 4.99 2005-08-21 16:24:45.000 2020-12-23 07:20:44
6754 250 250 1 1 14587 14587 5.99 2005-08-21 17:20:55.000 2020-12-23 07:20:44
6755 250 250 2 2 14814 14814 4.99 2005-08-22 01:12:14.000 2020-12-23 07:20:45
6756 250 250 2 2 15247 15247 6.99 2005-08-22 17:52:05.000 2020-12-23 07:20:45

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