home / sakila

payment

32 rows where customer_id = 209

✎ 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
5656 209 209 2 2 340 340 9.99 2005-05-27 03:55:25.000 2020-12-23 07:20:30
5657 209 209 1 1 471 471 0.99 2005-05-27 21:32:42.000 2020-12-23 07:20:30
5658 209 209 2 2 1143 1143 2.99 2005-05-31 19:53:03.000 2020-12-23 07:20:30
5659 209 209 2 2 1201 1201 4.99 2005-06-15 02:06:28.000 2020-12-23 07:20:30
5660 209 209 1 1 1657 1657 4.99 2005-06-16 10:06:49.000 2020-12-23 07:20:30
5661 209 209 1 1 2650 2650 4.99 2005-06-19 10:21:45.000 2020-12-23 07:20:30
5662 209 209 1 1 2796 2796 4.99 2005-06-19 19:00:37.000 2020-12-23 07:20:30
5663 209 209 2 2 3504 3504 2.99 2005-07-06 00:18:29.000 2020-12-23 07:20:30
5664 209 209 2 2 4071 4071 5.99 2005-07-07 04:37:26.000 2020-12-23 07:20:30
5665 209 209 1 1 4309 4309 5.99 2005-07-07 17:29:41.000 2020-12-23 07:20:30
5666 209 209 2 2 4810 4810 4.99 2005-07-08 17:04:06.000 2020-12-23 07:20:30
5667 209 209 1 1 4907 4907 4.99 2005-07-08 21:01:41.000 2020-12-23 07:20:30
5668 209 209 2 2 5170 5170 3.99 2005-07-09 09:24:19.000 2020-12-23 07:20:30
5669 209 209 2 2 5219 5219 5.99 2005-07-09 11:57:55.000 2020-12-23 07:20:30
5670 209 209 1 1 6210 6210 0.99 2005-07-11 12:36:43.000 2020-12-23 07:20:30
5671 209 209 1 1 7116 7116 6.99 2005-07-27 05:46:43.000 2020-12-23 07:20:30
5672 209 209 1 1 7269 7269 3.99 2005-07-27 11:23:47.000 2020-12-23 07:20:30
5673 209 209 1 1 7505 7505 4.99 2005-07-27 20:28:03.000 2020-12-23 07:20:30
5674 209 209 2 2 7752 7752 5.99 2005-07-28 06:01:00.000 2020-12-23 07:20:30
5675 209 209 1 1 8067 8067 4.99 2005-07-28 17:20:17.000 2020-12-23 07:20:30
5676 209 209 2 2 8759 8759 8.99 2005-07-29 19:22:37.000 2020-12-23 07:20:30
5677 209 209 2 2 8816 8816 2.99 2005-07-29 21:53:00.000 2020-12-23 07:20:30
5678 209 209 2 2 9054 9054 6.99 2005-07-30 07:11:44.000 2020-12-23 07:20:30
5679 209 209 1 1 9923 9923 0.99 2005-07-31 15:00:15.000 2020-12-23 07:20:30
5680 209 209 2 2 10554 10554 2.99 2005-08-01 12:56:19.000 2020-12-23 07:20:30
5681 209 209 1 1 10646 10646 4.99 2005-08-01 15:57:55.000 2020-12-23 07:20:30
5682 209 209 2 2 10811 10811 6.99 2005-08-01 22:41:15.000 2020-12-23 07:20:30
5683 209 209 1 1 12025 12025 0.99 2005-08-17 19:59:06.000 2020-12-23 07:20:30
5684 209 209 1 1 13796 13796 8.99 2005-08-20 12:32:32.000 2020-12-23 07:20:30
5685 209 209 2 2 14631 14631 6.99 2005-08-21 18:47:49.000 2020-12-23 07:20:30
5686 209 209 1 1 15254 15254 2.99 2005-08-22 18:13:07.000 2020-12-23 07:20:30
5687 209 209 2 2 15510 15510 9.99 2005-08-23 02:51:27.000 2020-12-23 07:20:30

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