home / sakila

payment

31 rows where customer_id = 361

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

Suggested facets: staff_id, amount, payment_date, last_update, payment_date (date), last_update (date)

payment_id ▼ customer_id staff_id rental_id amount payment_date last_update
9743 361 361 1 1 368 368 5.99 2005-05-27 07:42:29.000 2020-12-23 07:21:28
9744 361 361 2 2 1120 1120 4.99 2005-05-31 16:37:14.000 2020-12-23 07:21:28
9745 361 361 2 2 2353 2353 4.99 2005-06-18 12:53:25.000 2020-12-23 07:21:28
9746 361 361 2 2 2558 2558 1.99 2005-06-19 03:09:16.000 2020-12-23 07:21:28
9747 361 361 1 1 2851 2851 2.99 2005-06-19 23:07:03.000 2020-12-23 07:21:28
9748 361 361 2 2 3303 3303 2.99 2005-06-21 07:34:14.000 2020-12-23 07:21:28
9749 361 361 2 2 5154 5154 2.99 2005-07-09 08:46:18.000 2020-12-23 07:21:28
9750 361 361 1 1 6152 6152 0.99 2005-07-11 09:25:52.000 2020-12-23 07:21:28
9751 361 361 2 2 6829 6829 4.99 2005-07-12 18:38:59.000 2020-12-23 07:21:28
9752 361 361 2 2 6911 6911 0.99 2005-07-12 22:14:34.000 2020-12-23 07:21:28
9753 361 361 1 1 6914 6914 1.99 2005-07-12 22:26:56.000 2020-12-23 07:21:28
9754 361 361 1 1 7538 7538 2.99 2005-07-27 21:38:04.000 2020-12-23 07:21:28
9755 361 361 2 2 7712 7712 2.99 2005-07-28 04:29:53.000 2020-12-23 07:21:28
9756 361 361 2 2 8189 8189 4.99 2005-07-28 22:36:26.000 2020-12-23 07:21:28
9757 361 361 1 1 10145 10145 1.99 2005-07-31 22:15:13.000 2020-12-23 07:21:29
9758 361 361 1 1 10151 10151 4.99 2005-07-31 22:22:37.000 2020-12-23 07:21:29
9759 361 361 1 1 10414 10414 0.99 2005-08-01 08:03:55.000 2020-12-23 07:21:29
9760 361 361 2 2 10975 10975 0.99 2005-08-02 04:11:25.000 2020-12-23 07:21:29
9761 361 361 2 2 11031 11031 5.99 2005-08-02 05:52:58.000 2020-12-23 07:21:29
9762 361 361 2 2 11243 11243 5.99 2005-08-02 13:32:48.000 2020-12-23 07:21:29
9763 361 361 1 1 11327 11327 2.99 2005-08-02 16:40:47.000 2020-12-23 07:21:29
9764 361 361 1 1 11991 11991 3.99 2005-08-17 18:27:08.000 2020-12-23 07:21:29
9765 361 361 2 2 12626 12626 5.99 2005-08-18 17:36:45.000 2020-12-23 07:21:29
9766 361 361 2 2 12690 12690 2.99 2005-08-18 20:06:57.000 2020-12-23 07:21:29
9767 361 361 1 1 13135 13135 0.99 2005-08-19 12:22:52.000 2020-12-23 07:21:29
9768 361 361 2 2 14031 14031 0.99 2005-08-20 21:24:24.000 2020-12-23 07:21:29
9769 361 361 1 1 14422 14422 0.99 2005-08-21 11:21:46.000 2020-12-23 07:21:29
9770 361 361 1 1 15759 15759 6.99 2005-08-23 12:47:37.000 2020-12-23 07:21:29
9771 361 361 2 2 15935 15935 2.99 2005-08-23 18:41:11.000 2020-12-23 07:21:29
9772 361 361 1 1 13298 13298 3.98 2006-02-14 15:16:03.000 2020-12-23 07:21:29
9773 361 361 1 1 14769 14769 0 2006-02-14 15:16:03.000 2020-12-23 07:21:29

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