home / sakila

payment

21 rows where customer_id = 358

✎ 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
9663 358 358 2 2 858 858 4.99 2005-05-30 02:10:32.000 2020-12-23 07:21:27
9664 358 358 1 1 1455 1455 2.99 2005-06-15 19:51:06.000 2020-12-23 07:21:27
9665 358 358 2 2 1908 1908 0.99 2005-06-17 05:10:36.000 2020-12-23 07:21:27
9666 358 358 1 1 2114 2114 5.99 2005-06-17 20:00:25.000 2020-12-23 07:21:27
9667 358 358 1 1 2721 2721 2.99 2005-06-19 14:53:24.000 2020-12-23 07:21:27
9668 358 358 1 1 2749 2749 2.99 2005-06-19 16:27:35.000 2020-12-23 07:21:27
9669 358 358 1 1 3245 3245 2.99 2005-06-21 03:06:11.000 2020-12-23 07:21:27
9670 358 358 1 1 3753 3753 2.99 2005-07-06 12:34:06.000 2020-12-23 07:21:27
9671 358 358 1 1 3809 3809 2.99 2005-07-06 15:16:37.000 2020-12-23 07:21:27
9672 358 358 2 2 5023 5023 5.99 2005-07-09 02:23:16.000 2020-12-23 07:21:27
9673 358 358 1 1 6362 6362 2.99 2005-07-11 21:09:31.000 2020-12-23 07:21:27
9674 358 358 1 1 8621 8621 2.99 2005-07-29 13:52:42.000 2020-12-23 07:21:27
9675 358 358 2 2 9062 9062 0.99 2005-07-30 07:23:17.000 2020-12-23 07:21:27
9676 358 358 1 1 9568 9568 0.99 2005-07-31 02:37:44.000 2020-12-23 07:21:27
9677 358 358 1 1 10193 10193 2.99 2005-08-01 00:33:27.000 2020-12-23 07:21:27
9678 358 358 1 1 10482 10482 4.99 2005-08-01 10:17:47.000 2020-12-23 07:21:27
9679 358 358 2 2 11149 11149 5.99 2005-08-02 09:51:43.000 2020-12-23 07:21:27
9680 358 358 2 2 11653 11653 4.99 2005-08-17 05:06:10.000 2020-12-23 07:21:27
9681 358 358 1 1 12452 12452 6.99 2005-08-18 11:14:35.000 2020-12-23 07:21:27
9682 358 358 1 1 13197 13197 2.99 2005-08-19 14:44:03.000 2020-12-23 07:21:28
9683 358 358 1 1 14004 14004 7.99 2005-08-20 20:16:35.000 2020-12-23 07:21:28

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