home / sakila

payment

20 rows where customer_id = 212

✎ 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
5753 212 212 1 1 1356 1356 0.99 2005-06-15 13:17:01.000 2020-12-23 07:20:31
5754 212 212 2 2 1379 1379 0.99 2005-06-15 15:05:10.000 2020-12-23 07:20:31
5755 212 212 1 1 1637 1637 2.99 2005-06-16 08:29:58.000 2020-12-23 07:20:31
5756 212 212 2 2 2739 2739 9.99 2005-06-19 15:58:38.000 2020-12-23 07:20:31
5757 212 212 2 2 4708 4708 10.99 2005-07-08 11:59:19.000 2020-12-23 07:20:31
5758 212 212 2 2 4798 4798 3.99 2005-07-08 16:45:16.000 2020-12-23 07:20:31
5759 212 212 2 2 4916 4916 6.99 2005-07-08 21:32:17.000 2020-12-23 07:20:31
5760 212 212 1 1 5115 5115 6.99 2005-07-09 07:07:18.000 2020-12-23 07:20:31
5761 212 212 2 2 7828 7828 2.99 2005-07-28 08:40:46.000 2020-12-23 07:20:31
5762 212 212 2 2 8000 8000 4.99 2005-07-28 15:10:25.000 2020-12-23 07:20:31
5763 212 212 1 1 8940 8940 3.99 2005-07-30 02:57:26.000 2020-12-23 07:20:31
5764 212 212 2 2 10273 10273 4.99 2005-08-01 03:14:47.000 2020-12-23 07:20:31
5765 212 212 2 2 10567 10567 0.99 2005-08-01 13:16:01.000 2020-12-23 07:20:31
5766 212 212 1 1 12156 12156 7.99 2005-08-18 00:27:33.000 2020-12-23 07:20:31
5767 212 212 2 2 12467 12467 0.99 2005-08-18 11:40:09.000 2020-12-23 07:20:31
5768 212 212 2 2 12562 12562 3.99 2005-08-18 15:00:03.000 2020-12-23 07:20:31
5769 212 212 1 1 14563 14563 2.99 2005-08-21 16:23:53.000 2020-12-23 07:20:31
5770 212 212 2 2 14681 14681 5.99 2005-08-21 20:25:13.000 2020-12-23 07:20:31
5771 212 212 1 1 15872 15872 4.99 2005-08-23 16:27:24.000 2020-12-23 07:20:31
5772 212 212 2 2 15920 15920 2.99 2005-08-23 18:05:10.000 2020-12-23 07:20:31

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