home / sakila

payment

32 rows where customer_id = 362

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

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

payment_id ▼ customer_id staff_id rental_id amount payment_date last_update
9774 362 362 2 2 1035 1035 4.99 2005-05-31 05:01:09.000 2020-12-23 07:21:29
9775 362 362 1 1 1429 1429 2.99 2005-06-15 18:24:10.000 2020-12-23 07:21:29
9776 362 362 1 1 1529 1529 2.99 2005-06-16 00:37:35.000 2020-12-23 07:21:29
9777 362 362 1 1 1615 1615 2.99 2005-06-16 07:00:28.000 2020-12-23 07:21:29
9778 362 362 2 2 3197 3197 2.99 2005-06-21 00:07:23.000 2020-12-23 07:21:29
9779 362 362 2 2 3393 3393 2.99 2005-06-21 15:14:27.000 2020-12-23 07:21:29
9780 362 362 2 2 4646 4646 8.99 2005-07-08 09:23:26.000 2020-12-23 07:21:29
9781 362 362 1 1 5227 5227 4.99 2005-07-09 12:16:39.000 2020-12-23 07:21:29
9782 362 362 2 2 5563 5563 1.99 2005-07-10 03:21:02.000 2020-12-23 07:21:29
9783 362 362 2 2 5690 5690 5.99 2005-07-10 09:26:49.000 2020-12-23 07:21:29
9784 362 362 1 1 6204 6204 4.99 2005-07-11 12:29:22.000 2020-12-23 07:21:29
9785 362 362 2 2 6576 6576 4.99 2005-07-12 06:13:41.000 2020-12-23 07:21:29
9786 362 362 1 1 6981 6981 4.99 2005-07-27 00:51:38.000 2020-12-23 07:21:29
9787 362 362 1 1 7172 7172 1.99 2005-07-27 07:59:16.000 2020-12-23 07:21:29
9788 362 362 1 1 7485 7485 2.99 2005-07-27 19:29:09.000 2020-12-23 07:21:29
9789 362 362 1 1 8081 8081 2.99 2005-07-28 18:06:46.000 2020-12-23 07:21:29
9790 362 362 2 2 8325 8325 2.99 2005-07-29 03:57:27.000 2020-12-23 07:21:29
9791 362 362 2 2 8364 8364 4.99 2005-07-29 05:10:31.000 2020-12-23 07:21:29
9792 362 362 1 1 8662 8662 0.99 2005-07-29 15:31:33.000 2020-12-23 07:21:29
9793 362 362 1 1 8714 8714 2.99 2005-07-29 17:31:40.000 2020-12-23 07:21:29
9794 362 362 1 1 9784 9784 4.99 2005-07-31 10:21:32.000 2020-12-23 07:21:29
9795 362 362 2 2 10546 10546 3.99 2005-08-01 12:44:17.000 2020-12-23 07:21:29
9796 362 362 2 2 12244 12244 4.99 2005-08-18 03:39:11.000 2020-12-23 07:21:29
9797 362 362 1 1 12854 12854 6.99 2005-08-19 02:18:51.000 2020-12-23 07:21:29
9798 362 362 1 1 13603 13603 6.99 2005-08-20 06:02:48.000 2020-12-23 07:21:29
9799 362 362 2 2 14051 14051 6.99 2005-08-20 22:09:51.000 2020-12-23 07:21:29
9800 362 362 2 2 14129 14129 2.99 2005-08-21 01:42:15.000 2020-12-23 07:21:29
9801 362 362 2 2 14336 14336 4.99 2005-08-21 08:33:42.000 2020-12-23 07:21:29
9802 362 362 1 1 14752 14752 5.99 2005-08-21 23:11:42.000 2020-12-23 07:21:29
9803 362 362 1 1 14759 14759 11.99 2005-08-21 23:28:58.000 2020-12-23 07:21:29
9804 362 362 1 1 14808 14808 4.99 2005-08-22 00:58:35.000 2020-12-23 07:21:29
9805 362 362 1 1 14950 14950 2.99 2005-08-22 06:17:12.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 13.577ms