home / sakila

payment

23 rows where customer_id = 177

✎ 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
4800 177 177 1 1 1393 1393 2.99 2005-06-15 16:12:50.000 2020-12-23 07:20:17
4801 177 177 1 1 1524 1524 2.99 2005-06-16 00:25:52.000 2020-12-23 07:20:17
4802 177 177 2 2 1621 1621 4.99 2005-06-16 07:24:12.000 2020-12-23 07:20:17
4803 177 177 1 1 1738 1738 0.99 2005-06-16 16:07:27.000 2020-12-23 07:20:17
4804 177 177 2 2 2467 2467 2.99 2005-06-18 20:20:05.000 2020-12-23 07:20:17
4805 177 177 1 1 4760 4760 0.99 2005-07-08 14:48:07.000 2020-12-23 07:20:17
4806 177 177 2 2 6217 6217 9.99 2005-07-11 13:13:45.000 2020-12-23 07:20:17
4807 177 177 1 1 6284 6284 2.99 2005-07-11 16:51:39.000 2020-12-23 07:20:17
4808 177 177 1 1 7493 7493 3.99 2005-07-27 19:55:46.000 2020-12-23 07:20:17
4809 177 177 2 2 7674 7674 1.99 2005-07-28 02:54:30.000 2020-12-23 07:20:17
4810 177 177 1 1 8139 8139 0.99 2005-07-28 20:16:30.000 2020-12-23 07:20:17
4811 177 177 2 2 9190 9190 1.99 2005-07-30 12:24:17.000 2020-12-23 07:20:17
4812 177 177 2 2 10321 10321 4.99 2005-08-01 04:40:02.000 2020-12-23 07:20:17
4813 177 177 1 1 10661 10661 2.99 2005-08-01 16:48:31.000 2020-12-23 07:20:17
4814 177 177 1 1 10710 10710 0.99 2005-08-01 18:44:36.000 2020-12-23 07:20:17
4815 177 177 1 1 11195 11195 0.99 2005-08-02 11:42:23.000 2020-12-23 07:20:17
4816 177 177 1 1 11376 11376 5.99 2005-08-02 18:16:00.000 2020-12-23 07:20:18
4817 177 177 2 2 11662 11662 6.99 2005-08-17 05:27:37.000 2020-12-23 07:20:18
4818 177 177 1 1 12623 12623 4.99 2005-08-18 17:34:19.000 2020-12-23 07:20:18
4819 177 177 2 2 14093 14093 0.99 2005-08-21 00:21:29.000 2020-12-23 07:20:18
4820 177 177 2 2 14310 14310 0.99 2005-08-21 07:44:32.000 2020-12-23 07:20:18
4821 177 177 2 2 14849 14849 2.99 2005-08-22 02:15:26.000 2020-12-23 07:20:18
4822 177 177 2 2 14883 14883 0.99 2005-08-22 03:55:02.000 2020-12-23 07:20:18

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