home / sakila

payment

18 rows where customer_id = 205

✎ 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
5551 205 205 1 1 1238 1238 2.99 2005-06-15 04:49:08.000 2020-12-23 07:20:28
5552 205 205 1 1 1357 1357 4.99 2005-06-15 13:26:23.000 2020-12-23 07:20:28
5553 205 205 1 1 1767 1767 0.99 2005-06-16 18:01:36.000 2020-12-23 07:20:28
5554 205 205 2 2 2237 2237 5.99 2005-06-18 04:17:44.000 2020-12-23 07:20:28
5555 205 205 1 1 3601 3601 7.99 2005-07-06 05:20:25.000 2020-12-23 07:20:28
5556 205 205 2 2 4230 4230 3.99 2005-07-07 12:46:47.000 2020-12-23 07:20:28
5557 205 205 2 2 4377 4377 7.99 2005-07-07 20:28:57.000 2020-12-23 07:20:28
5558 205 205 1 1 4729 4729 4.99 2005-07-08 12:59:40.000 2020-12-23 07:20:28
5559 205 205 1 1 7736 7736 2.99 2005-07-28 05:12:04.000 2020-12-23 07:20:28
5560 205 205 2 2 7976 7976 7.99 2005-07-28 14:13:24.000 2020-12-23 07:20:28
5561 205 205 2 2 8896 8896 4.99 2005-07-30 00:51:21.000 2020-12-23 07:20:28
5562 205 205 2 2 10086 10086 4.99 2005-07-31 20:14:08.000 2020-12-23 07:20:28
5563 205 205 1 1 13935 13935 2.99 2005-08-20 17:20:49.000 2020-12-23 07:20:28
5564 205 205 1 1 14338 14338 0.99 2005-08-21 08:36:03.000 2020-12-23 07:20:28
5565 205 205 2 2 14391 14391 4.99 2005-08-21 10:16:27.000 2020-12-23 07:20:28
5566 205 205 1 1 14442 14442 2.99 2005-08-21 12:00:21.000 2020-12-23 07:20:28
5567 205 205 2 2 14490 14490 6.99 2005-08-21 13:54:15.000 2020-12-23 07:20:28
5568 205 205 2 2 15418 15418 0.99 2005-08-22 23:54:14.000 2020-12-23 07:20:29

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