home / sakila

payment

31 rows where customer_id = 323

✎ 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
8723 323 323 1 1 58 58 4.99 2005-05-25 08:53:14.000 2020-12-23 07:21:13
8724 323 323 2 2 729 729 2.99 2005-05-29 06:35:13.000 2020-12-23 07:21:13
8725 323 323 1 1 878 878 5.99 2005-05-30 05:49:13.000 2020-12-23 07:21:13
8726 323 323 2 2 1167 1167 0.99 2005-06-14 23:25:58.000 2020-12-23 07:21:13
8727 323 323 2 2 1786 1786 2.99 2005-06-16 19:30:54.000 2020-12-23 07:21:13
8728 323 323 1 1 2933 2933 4.99 2005-06-20 04:52:23.000 2020-12-23 07:21:13
8729 323 323 2 2 3704 3704 6.99 2005-07-06 10:16:45.000 2020-12-23 07:21:14
8730 323 323 2 2 4572 4572 1.99 2005-07-08 05:36:59.000 2020-12-23 07:21:14
8731 323 323 2 2 5669 5669 4.99 2005-07-10 08:12:53.000 2020-12-23 07:21:14
8732 323 323 2 2 5906 5906 1.99 2005-07-10 20:41:41.000 2020-12-23 07:21:14
8733 323 323 1 1 6840 6840 3.99 2005-07-12 19:03:22.000 2020-12-23 07:21:14
8734 323 323 2 2 7146 7146 7.99 2005-07-27 07:02:30.000 2020-12-23 07:21:14
8735 323 323 2 2 7275 7275 2.99 2005-07-27 11:39:08.000 2020-12-23 07:21:14
8736 323 323 2 2 7695 7695 5.99 2005-07-28 03:41:13.000 2020-12-23 07:21:14
8737 323 323 1 1 7847 7847 1.99 2005-07-28 09:23:14.000 2020-12-23 07:21:14
8738 323 323 2 2 7937 7937 4.99 2005-07-28 12:38:22.000 2020-12-23 07:21:14
8739 323 323 2 2 8474 8474 0.99 2005-07-29 08:36:56.000 2020-12-23 07:21:14
8740 323 323 1 1 8790 8790 0.99 2005-07-29 20:51:41.000 2020-12-23 07:21:14
8741 323 323 1 1 9363 9363 2.99 2005-07-30 18:44:23.000 2020-12-23 07:21:14
8742 323 323 2 2 10002 10002 4.99 2005-07-31 17:48:16.000 2020-12-23 07:21:14
8743 323 323 1 1 10028 10028 4.99 2005-07-31 18:35:54.000 2020-12-23 07:21:14
8744 323 323 1 1 10298 10298 0.99 2005-08-01 04:06:03.000 2020-12-23 07:21:14
8745 323 323 1 1 10994 10994 3.99 2005-08-02 04:46:53.000 2020-12-23 07:21:14
8746 323 323 2 2 11548 11548 0.99 2005-08-17 00:59:47.000 2020-12-23 07:21:14
8747 323 323 1 1 12120 12120 4.99 2005-08-17 23:16:46.000 2020-12-23 07:21:14
8748 323 323 1 1 12169 12169 2.99 2005-08-18 01:05:54.000 2020-12-23 07:21:14
8749 323 323 1 1 13140 13140 5.99 2005-08-19 12:35:56.000 2020-12-23 07:21:14
8750 323 323 1 1 14224 14224 2.99 2005-08-21 04:53:08.000 2020-12-23 07:21:14
8751 323 323 1 1 14957 14957 3.99 2005-08-22 06:29:34.000 2020-12-23 07:21:14
8752 323 323 1 1 15387 15387 4.99 2005-08-22 22:49:13.000 2020-12-23 07:21:14
8753 323 323 1 1 15728 15728 0.99 2005-08-23 11:30:32.000 2020-12-23 07:21:14

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