home / sakila

payment

31 rows where customer_id = 479

✎ 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
12926 479 479 2 2 132 132 3.99 2005-05-25 21:46:54.000 2020-12-23 07:22:12
12927 479 479 1 1 709 709 7.99 2005-05-29 03:48:01.000 2020-12-23 07:22:12
12928 479 479 1 1 1902 1902 2.99 2005-06-17 04:35:52.000 2020-12-23 07:22:12
12929 479 479 2 2 1947 1947 3.99 2005-06-17 08:02:20.000 2020-12-23 07:22:13
12930 479 479 2 2 1987 1987 2.99 2005-06-17 10:40:36.000 2020-12-23 07:22:13
12931 479 479 2 2 2071 2071 3.99 2005-06-17 16:33:17.000 2020-12-23 07:22:13
12932 479 479 2 2 2376 2376 2.99 2005-06-18 14:55:30.000 2020-12-23 07:22:13
12933 479 479 2 2 2764 2764 6.99 2005-06-19 17:27:25.000 2020-12-23 07:22:13
12934 479 479 2 2 3537 3537 6.99 2005-07-06 01:36:53.000 2020-12-23 07:22:13
12935 479 479 1 1 3798 3798 0.99 2005-07-06 14:57:53.000 2020-12-23 07:22:13
12936 479 479 2 2 4183 4183 8.99 2005-07-07 10:28:33.000 2020-12-23 07:22:13
12937 479 479 1 1 5481 5481 0.99 2005-07-09 23:51:57.000 2020-12-23 07:22:13
12938 479 479 1 1 5751 5751 4.99 2005-07-10 12:25:11.000 2020-12-23 07:22:13
12939 479 479 2 2 6084 6084 7.99 2005-07-11 05:16:20.000 2020-12-23 07:22:13
12940 479 479 1 1 6421 6421 1.99 2005-07-11 23:45:25.000 2020-12-23 07:22:13
12941 479 479 1 1 6597 6597 0.99 2005-07-12 07:37:02.000 2020-12-23 07:22:13
12942 479 479 2 2 6849 6849 8.99 2005-07-12 19:29:19.000 2020-12-23 07:22:13
12943 479 479 1 1 7060 7060 7.99 2005-07-27 03:51:04.000 2020-12-23 07:22:13
12944 479 479 2 2 7893 7893 2.99 2005-07-28 10:49:27.000 2020-12-23 07:22:13
12945 479 479 1 1 9347 9347 5.99 2005-07-30 18:16:03.000 2020-12-23 07:22:13
12946 479 479 1 1 9439 9439 8.99 2005-07-30 21:38:12.000 2020-12-23 07:22:13
12947 479 479 2 2 9697 9697 2.99 2005-07-31 07:23:11.000 2020-12-23 07:22:13
12948 479 479 2 2 9754 9754 7.99 2005-07-31 09:23:43.000 2020-12-23 07:22:13
12949 479 479 2 2 10303 10303 4.99 2005-08-01 04:13:33.000 2020-12-23 07:22:13
12950 479 479 2 2 11109 11109 4.99 2005-08-02 08:20:29.000 2020-12-23 07:22:13
12951 479 479 2 2 11584 11584 1.99 2005-08-17 02:13:26.000 2020-12-23 07:22:13
12952 479 479 2 2 11835 11835 4.99 2005-08-17 13:03:13.000 2020-12-23 07:22:13
12953 479 479 2 2 12401 12401 0.99 2005-08-18 09:20:51.000 2020-12-23 07:22:13
12954 479 479 2 2 13078 13078 8.99 2005-08-19 10:16:43.000 2020-12-23 07:22:13
12955 479 479 1 1 13974 13974 2.99 2005-08-20 18:54:59.000 2020-12-23 07:22:13
12956 479 479 1 1 12101 12101 0.99 2006-02-14 15:16:03.000 2020-12-23 07:22:13

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