home / sakila

payment

32 rows where customer_id = 535

✎ 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
14396 535 535 1 1 37 37 0.99 2005-05-25 04:44:31.000 2020-12-23 07:22:32
14397 535 535 2 2 541 541 2.99 2005-05-28 06:41:58.000 2020-12-23 07:22:32
14398 535 535 1 1 778 778 3.99 2005-05-29 14:09:53.000 2020-12-23 07:22:32
14399 535 535 2 2 959 959 4.99 2005-05-30 18:07:00.000 2020-12-23 07:22:32
14400 535 535 1 1 1712 1712 4.99 2005-06-16 14:25:09.000 2020-12-23 07:22:32
14401 535 535 1 1 3228 3228 4.99 2005-06-21 02:20:24.000 2020-12-23 07:22:32
14402 535 535 1 1 4331 4331 4.99 2005-07-07 18:22:30.000 2020-12-23 07:22:32
14403 535 535 1 1 4718 4718 6.99 2005-07-08 12:32:08.000 2020-12-23 07:22:32
14404 535 535 1 1 4743 4743 2.99 2005-07-08 13:42:36.000 2020-12-23 07:22:32
14405 535 535 2 2 4914 4914 6.99 2005-07-08 21:30:53.000 2020-12-23 07:22:32
14406 535 535 1 1 5588 5588 0.99 2005-07-10 04:21:10.000 2020-12-23 07:22:32
14407 535 535 2 2 5890 5890 8.99 2005-07-10 20:00:25.000 2020-12-23 07:22:32
14408 535 535 1 1 6504 6504 2.99 2005-07-12 03:19:14.000 2020-12-23 07:22:32
14409 535 535 1 1 8395 8395 2.99 2005-07-29 06:03:30.000 2020-12-23 07:22:32
14410 535 535 1 1 8645 8645 4.99 2005-07-29 14:47:45.000 2020-12-23 07:22:32
14411 535 535 2 2 9440 9440 0.99 2005-07-30 21:40:15.000 2020-12-23 07:22:32
14412 535 535 1 1 9524 9524 4.99 2005-07-31 01:01:06.000 2020-12-23 07:22:32
14413 535 535 2 2 10322 10322 5.99 2005-08-01 04:44:13.000 2020-12-23 07:22:32
14414 535 535 2 2 10353 10353 3.99 2005-08-01 05:46:33.000 2020-12-23 07:22:32
14415 535 535 2 2 11736 11736 8.99 2005-08-17 08:40:55.000 2020-12-23 07:22:32
14416 535 535 1 1 11855 11855 7.99 2005-08-17 13:43:07.000 2020-12-23 07:22:32
14417 535 535 2 2 12168 12168 2.99 2005-08-18 01:03:52.000 2020-12-23 07:22:32
14418 535 535 1 1 12233 12233 0.99 2005-08-18 03:16:54.000 2020-12-23 07:22:32
14419 535 535 2 2 12673 12673 4.99 2005-08-18 19:21:56.000 2020-12-23 07:22:32
14420 535 535 1 1 12732 12732 0.99 2005-08-18 21:57:50.000 2020-12-23 07:22:32
14421 535 535 2 2 12750 12750 1.99 2005-08-18 22:32:39.000 2020-12-23 07:22:32
14422 535 535 1 1 13631 13631 4.99 2005-08-20 07:07:37.000 2020-12-23 07:22:32
14423 535 535 1 1 13852 13852 0.99 2005-08-20 14:45:23.000 2020-12-23 07:22:32
14424 535 535 1 1 14522 14522 4.99 2005-08-21 15:01:34.000 2020-12-23 07:22:32
14425 535 535 2 2 15075 15075 5.99 2005-08-22 11:04:52.000 2020-12-23 07:22:32
14426 535 535 1 1 15287 15287 6.99 2005-08-22 19:19:37.000 2020-12-23 07:22:32
14427 535 535 1 1 16017 16017 0.99 2005-08-23 21:27:11.000 2020-12-23 07:22:32

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