home / sakila

payment

33 rows where customer_id = 462

✎ 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
12468 462 462 2 2 156 156 2.99 2005-05-26 01:19:05.000 2020-12-23 07:22:07
12469 462 462 2 2 590 590 3.99 2005-05-28 13:06:50.000 2020-12-23 07:22:07
12470 462 462 2 2 1773 1773 5.99 2005-06-16 18:13:43.000 2020-12-23 07:22:07
12471 462 462 2 2 1926 1926 9.99 2005-06-17 06:24:30.000 2020-12-23 07:22:07
12472 462 462 1 1 3279 3279 4.99 2005-06-21 06:05:53.000 2020-12-23 07:22:07
12473 462 462 1 1 4500 4500 4.99 2005-07-08 02:10:01.000 2020-12-23 07:22:07
12474 462 462 2 2 4728 4728 3.99 2005-07-08 12:59:01.000 2020-12-23 07:22:07
12475 462 462 1 1 6583 6583 4.99 2005-07-12 06:42:31.000 2020-12-23 07:22:07
12476 462 462 1 1 6630 6630 0.99 2005-07-12 09:30:05.000 2020-12-23 07:22:07
12477 462 462 1 1 6710 6710 7.99 2005-07-12 13:23:09.000 2020-12-23 07:22:07
12478 462 462 1 1 6721 6721 6.99 2005-07-12 13:42:58.000 2020-12-23 07:22:07
12479 462 462 2 2 7295 7295 8.99 2005-07-27 12:38:47.000 2020-12-23 07:22:07
12480 462 462 1 1 7324 7324 6.99 2005-07-27 13:42:39.000 2020-12-23 07:22:07
12481 462 462 1 1 7762 7762 8.99 2005-07-28 06:34:23.000 2020-12-23 07:22:07
12482 462 462 1 1 7932 7932 4.99 2005-07-28 12:24:54.000 2020-12-23 07:22:07
12483 462 462 2 2 7935 7935 2.99 2005-07-28 12:33:17.000 2020-12-23 07:22:07
12484 462 462 1 1 8066 8066 2.99 2005-07-28 17:20:09.000 2020-12-23 07:22:07
12485 462 462 1 1 8282 8282 0.99 2005-07-29 01:49:04.000 2020-12-23 07:22:07
12486 462 462 1 1 8290 8290 3.99 2005-07-29 02:24:08.000 2020-12-23 07:22:07
12487 462 462 2 2 8757 8757 2.99 2005-07-29 19:19:10.000 2020-12-23 07:22:07
12488 462 462 1 1 9891 9891 0.99 2005-07-31 14:05:44.000 2020-12-23 07:22:07
12489 462 462 1 1 10283 10283 2.99 2005-08-01 03:29:45.000 2020-12-23 07:22:07
12490 462 462 2 2 11639 11639 6.99 2005-08-17 04:43:29.000 2020-12-23 07:22:07
12491 462 462 1 1 11808 11808 2.99 2005-08-17 11:51:16.000 2020-12-23 07:22:07
12492 462 462 1 1 12466 12466 4.99 2005-08-18 11:36:55.000 2020-12-23 07:22:07
12493 462 462 2 2 12582 12582 0.99 2005-08-18 15:51:12.000 2020-12-23 07:22:07
12494 462 462 1 1 12802 12802 8.99 2005-08-19 00:27:41.000 2020-12-23 07:22:07
12495 462 462 2 2 13041 13041 8.99 2005-08-19 09:05:38.000 2020-12-23 07:22:07
12496 462 462 1 1 13328 13328 4.99 2005-08-19 19:56:01.000 2020-12-23 07:22:07
12497 462 462 1 1 13492 13492 7.99 2005-08-20 01:32:04.000 2020-12-23 07:22:07
12498 462 462 2 2 15581 15581 2.99 2005-08-23 05:42:13.000 2020-12-23 07:22:07
12499 462 462 1 1 15943 15943 2.99 2005-08-23 18:49:32.000 2020-12-23 07:22:07
12500 462 462 1 1 16013 16013 0.99 2005-08-23 21:17:17.000 2020-12-23 07:22:07

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