home / sakila

payment

22 rows where customer_id = 247

✎ 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
6677 247 247 1 1 189 189 4.99 2005-05-26 06:01:41.000 2020-12-23 07:20:43
6678 247 247 2 2 448 448 3.99 2005-05-27 19:03:08.000 2020-12-23 07:20:43
6679 247 247 1 1 450 450 6.99 2005-05-27 19:18:54.000 2020-12-23 07:20:43
6680 247 247 1 1 2288 2288 5.99 2005-06-18 07:23:17.000 2020-12-23 07:20:43
6681 247 247 2 2 3955 3955 2.99 2005-07-06 21:58:08.000 2020-12-23 07:20:43
6682 247 247 2 2 4198 4198 6.99 2005-07-07 11:08:11.000 2020-12-23 07:20:43
6683 247 247 1 1 4492 4492 2.99 2005-07-08 01:32:04.000 2020-12-23 07:20:43
6684 247 247 2 2 4995 4995 2.99 2005-07-09 00:57:46.000 2020-12-23 07:20:43
6685 247 247 1 1 5328 5328 6.99 2005-07-09 16:48:29.000 2020-12-23 07:20:43
6686 247 247 1 1 5842 5842 4.99 2005-07-10 17:11:37.000 2020-12-23 07:20:43
6687 247 247 1 1 7963 7963 5.99 2005-07-28 13:48:38.000 2020-12-23 07:20:43
6688 247 247 1 1 10279 10279 1.99 2005-08-01 03:26:44.000 2020-12-23 07:20:43
6689 247 247 1 1 10410 10410 6.99 2005-08-01 07:53:29.000 2020-12-23 07:20:43
6690 247 247 2 2 11204 11204 2.99 2005-08-02 11:56:31.000 2020-12-23 07:20:43
6691 247 247 2 2 11306 11306 2.99 2005-08-02 15:45:10.000 2020-12-23 07:20:44
6692 247 247 1 1 11495 11495 0.99 2005-08-16 22:51:20.000 2020-12-23 07:20:44
6693 247 247 2 2 12265 12265 4.99 2005-08-18 04:22:01.000 2020-12-23 07:20:44
6694 247 247 1 1 12482 12482 7.99 2005-08-18 12:37:36.000 2020-12-23 07:20:44
6695 247 247 1 1 12491 12491 4.99 2005-08-18 12:48:45.000 2020-12-23 07:20:44
6696 247 247 1 1 12824 12824 4.99 2005-08-19 01:18:00.000 2020-12-23 07:20:44
6697 247 247 1 1 14041 14041 4.99 2005-08-20 21:45:23.000 2020-12-23 07:20:44
6698 247 247 1 1 15783 15783 4.99 2005-08-23 13:45:44.000 2020-12-23 07:20:44

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