home / sakila

payment

31 rows where customer_id = 393

✎ 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
10641 393 393 1 1 599 599 4.99 2005-05-28 14:05:57.000 2020-12-23 07:21:41
10642 393 393 2 2 886 886 0.99 2005-05-30 06:54:51.000 2020-12-23 07:21:41
10643 393 393 1 1 1611 1611 6.99 2005-06-16 06:41:35.000 2020-12-23 07:21:41
10644 393 393 2 2 1915 1915 1.99 2005-06-17 05:28:28.000 2020-12-23 07:21:41
10645 393 393 2 2 2219 2219 2.99 2005-06-18 03:16:54.000 2020-12-23 07:21:41
10646 393 393 1 1 2319 2319 4.99 2005-06-18 09:24:22.000 2020-12-23 07:21:41
10647 393 393 2 2 3001 3001 2.99 2005-06-20 09:50:16.000 2020-12-23 07:21:41
10648 393 393 2 2 4275 4275 2.99 2005-07-07 14:43:51.000 2020-12-23 07:21:41
10649 393 393 2 2 4546 4546 8.99 2005-07-08 04:18:36.000 2020-12-23 07:21:41
10650 393 393 2 2 4632 4632 5.99 2005-07-08 08:38:57.000 2020-12-23 07:21:41
10651 393 393 2 2 4791 4791 7.99 2005-07-08 16:27:24.000 2020-12-23 07:21:42
10652 393 393 1 1 5099 5099 4.99 2005-07-09 06:14:30.000 2020-12-23 07:21:42
10653 393 393 1 1 6221 6221 2.99 2005-07-11 13:24:27.000 2020-12-23 07:21:42
10654 393 393 2 2 6513 6513 0.99 2005-07-12 03:44:43.000 2020-12-23 07:21:42
10655 393 393 1 1 6930 6930 8.99 2005-07-26 23:00:01.000 2020-12-23 07:21:42
10656 393 393 2 2 7486 7486 0.99 2005-07-27 19:29:24.000 2020-12-23 07:21:42
10657 393 393 2 2 8004 8004 4.99 2005-07-28 15:14:07.000 2020-12-23 07:21:42
10658 393 393 2 2 8448 8448 0.99 2005-07-29 07:41:54.000 2020-12-23 07:21:42
10659 393 393 2 2 9763 9763 7.99 2005-07-31 09:34:03.000 2020-12-23 07:21:42
10660 393 393 1 1 10158 10158 1.99 2005-07-31 22:40:31.000 2020-12-23 07:21:42
10661 393 393 2 2 12059 12059 2.99 2005-08-17 21:09:23.000 2020-12-23 07:21:42
10662 393 393 1 1 12113 12113 1.99 2005-08-17 23:01:00.000 2020-12-23 07:21:42
10663 393 393 1 1 12563 12563 4.99 2005-08-18 15:08:29.000 2020-12-23 07:21:42
10664 393 393 1 1 12676 12676 0.99 2005-08-18 19:34:40.000 2020-12-23 07:21:42
10665 393 393 1 1 13184 13184 4.99 2005-08-19 14:16:18.000 2020-12-23 07:21:42
10666 393 393 2 2 13357 13357 4.99 2005-08-19 21:02:59.000 2020-12-23 07:21:42
10667 393 393 2 2 13788 13788 1.99 2005-08-20 12:15:41.000 2020-12-23 07:21:42
10668 393 393 1 1 15132 15132 2.99 2005-08-22 13:11:25.000 2020-12-23 07:21:42
10669 393 393 2 2 15284 15284 3.99 2005-08-22 19:17:08.000 2020-12-23 07:21:42
10670 393 393 2 2 15527 15527 0.99 2005-08-23 03:44:51.000 2020-12-23 07:21:42
10671 393 393 2 2 16049 16049 3.99 2005-08-23 22:50:12.000 2020-12-23 07:21:42

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