home / sakila

payment

22 rows where customer_id = 325

✎ 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
8779 325 325 1 1 131 131 5.99 2005-05-25 21:42:46.000 2020-12-23 07:21:14
8780 325 325 2 2 2502 2502 4.99 2005-06-18 23:12:13.000 2020-12-23 07:21:14
8781 325 325 2 2 2507 2507 4.99 2005-06-18 23:39:22.000 2020-12-23 07:21:14
8782 325 325 2 2 2808 2808 2.99 2005-06-19 19:34:45.000 2020-12-23 07:21:14
8783 325 325 1 1 5470 5470 5.99 2005-07-09 23:10:49.000 2020-12-23 07:21:14
8784 325 325 2 2 5740 5740 2.99 2005-07-10 11:51:58.000 2020-12-23 07:21:14
8785 325 325 1 1 5775 5775 4.99 2005-07-10 13:34:26.000 2020-12-23 07:21:14
8786 325 325 2 2 6135 6135 4.99 2005-07-11 08:32:23.000 2020-12-23 07:21:14
8787 325 325 2 2 6622 6622 0.99 2005-07-12 09:04:11.000 2020-12-23 07:21:14
8788 325 325 2 2 7223 7223 9.99 2005-07-27 09:42:27.000 2020-12-23 07:21:14
8789 325 325 2 2 7687 7687 2.99 2005-07-28 03:20:26.000 2020-12-23 07:21:14
8790 325 325 2 2 8539 8539 0.99 2005-07-29 10:48:24.000 2020-12-23 07:21:14
8791 325 325 2 2 10030 10030 2.99 2005-07-31 18:39:36.000 2020-12-23 07:21:14
8792 325 325 1 1 10070 10070 4.99 2005-07-31 19:46:29.000 2020-12-23 07:21:14
8793 325 325 2 2 10326 10326 4.99 2005-08-01 04:55:34.000 2020-12-23 07:21:14
8794 325 325 1 1 10412 10412 0.99 2005-08-01 07:57:16.000 2020-12-23 07:21:14
8795 325 325 2 2 12097 12097 4.99 2005-08-17 22:35:24.000 2020-12-23 07:21:14
8796 325 325 1 1 12779 12779 3.99 2005-08-18 23:44:00.000 2020-12-23 07:21:14
8797 325 325 2 2 13054 13054 4.99 2005-08-19 09:34:02.000 2020-12-23 07:21:14
8798 325 325 2 2 14452 14452 3.99 2005-08-21 12:23:20.000 2020-12-23 07:21:14
8799 325 325 1 1 14672 14672 5.99 2005-08-21 19:59:33.000 2020-12-23 07:21:14
8800 325 325 2 2 15009 15009 0.99 2005-08-22 08:27:27.000 2020-12-23 07:21:15

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