home / sakila

payment

20 rows where customer_id = 355

✎ 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
9587 355 355 1 1 1110 1110 3.99 2005-05-31 15:22:51.000 2020-12-23 07:21:26
9588 355 355 2 2 1488 1488 0.99 2005-06-15 21:39:54.000 2020-12-23 07:21:26
9589 355 355 1 1 1612 1612 2.99 2005-06-16 06:52:05.000 2020-12-23 07:21:26
9590 355 355 1 1 3567 3567 5.99 2005-07-06 03:09:36.000 2020-12-23 07:21:26
9591 355 355 1 1 3730 3730 6.99 2005-07-06 11:31:24.000 2020-12-23 07:21:26
9592 355 355 1 1 5210 5210 4.99 2005-07-09 11:24:19.000 2020-12-23 07:21:26
9593 355 355 1 1 5564 5564 5.99 2005-07-10 03:23:05.000 2020-12-23 07:21:26
9594 355 355 1 1 6127 6127 0.99 2005-07-11 08:06:59.000 2020-12-23 07:21:26
9595 355 355 2 2 6262 6262 6.99 2005-07-11 15:33:24.000 2020-12-23 07:21:26
9596 355 355 1 1 6437 6437 2.99 2005-07-12 00:20:29.000 2020-12-23 07:21:26
9597 355 355 2 2 6669 6669 4.99 2005-07-12 11:39:55.000 2020-12-23 07:21:26
9598 355 355 2 2 7108 7108 4.99 2005-07-27 05:28:32.000 2020-12-23 07:21:26
9599 355 355 2 2 7477 7477 5.99 2005-07-27 19:11:03.000 2020-12-23 07:21:26
9600 355 355 2 2 8418 8418 1.99 2005-07-29 06:54:21.000 2020-12-23 07:21:26
9601 355 355 1 1 10498 10498 0.99 2005-08-01 10:56:48.000 2020-12-23 07:21:27
9602 355 355 2 2 11471 11471 0.99 2005-08-02 21:49:03.000 2020-12-23 07:21:27
9603 355 355 2 2 13821 13821 1.99 2005-08-20 13:33:47.000 2020-12-23 07:21:27
9604 355 355 1 1 15367 15367 3.99 2005-08-22 21:47:53.000 2020-12-23 07:21:27
9605 355 355 2 2 15531 15531 2.99 2005-08-23 03:52:36.000 2020-12-23 07:21:27
9606 355 355 1 1 14760 14760 0.99 2006-02-14 15:16:03.000 2020-12-23 07:21:27

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