home / sakila

payment

23 rows where customer_id = 352

✎ 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
9510 352 352 1 1 784 784 2.99 2005-05-29 14:44:22.000 2020-12-23 07:21:25
9511 352 352 1 1 1498 1498 0.99 2005-06-15 21:58:00.000 2020-12-23 07:21:25
9512 352 352 1 1 1649 1649 4.99 2005-06-16 09:20:33.000 2020-12-23 07:21:25
9513 352 352 1 1 1678 1678 4.99 2005-06-16 11:08:28.000 2020-12-23 07:21:25
9514 352 352 1 1 1780 1780 4.99 2005-06-16 19:11:45.000 2020-12-23 07:21:25
9515 352 352 2 2 3331 3331 4.99 2005-06-21 09:37:53.000 2020-12-23 07:21:25
9516 352 352 2 2 4116 4116 4.99 2005-07-07 06:56:13.000 2020-12-23 07:21:25
9517 352 352 2 2 6329 6329 5.99 2005-07-11 19:10:38.000 2020-12-23 07:21:25
9518 352 352 1 1 7033 7033 2.99 2005-07-27 03:03:25.000 2020-12-23 07:21:25
9519 352 352 1 1 7419 7419 7.99 2005-07-27 17:04:15.000 2020-12-23 07:21:25
9520 352 352 2 2 7512 7512 6.99 2005-07-27 20:40:40.000 2020-12-23 07:21:25
9521 352 352 1 1 7579 7579 4.99 2005-07-27 23:06:41.000 2020-12-23 07:21:25
9522 352 352 1 1 7845 7845 5.99 2005-07-28 09:18:07.000 2020-12-23 07:21:25
9523 352 352 1 1 7886 7886 2.99 2005-07-28 10:37:55.000 2020-12-23 07:21:25
9524 352 352 1 1 9463 9463 0.99 2005-07-30 22:30:57.000 2020-12-23 07:21:25
9525 352 352 1 1 11793 11793 5.99 2005-08-17 11:05:53.000 2020-12-23 07:21:26
9526 352 352 1 1 11823 11823 6.99 2005-08-17 12:36:37.000 2020-12-23 07:21:26
9527 352 352 2 2 11986 11986 0.99 2005-08-17 18:21:58.000 2020-12-23 07:21:26
9528 352 352 2 2 12234 12234 5.99 2005-08-18 03:17:33.000 2020-12-23 07:21:26
9529 352 352 1 1 12751 12751 2.99 2005-08-18 22:33:22.000 2020-12-23 07:21:26
9530 352 352 1 1 14130 14130 4.99 2005-08-21 01:43:11.000 2020-12-23 07:21:26
9531 352 352 2 2 14852 14852 0.99 2005-08-22 02:25:53.000 2020-12-23 07:21:26
9532 352 352 2 2 13578 13578 2.99 2006-02-14 15:16:03.000 2020-12-23 07:21:26

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