home / sakila

payment

20 rows where customer_id = 567

✎ 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
15189 567 567 2 2 2689 2689 4.99 2005-06-19 12:58:53.000 2020-12-23 07:22:43
15190 567 567 1 1 3010 3010 2.99 2005-06-20 10:29:59.000 2020-12-23 07:22:43
15191 567 567 1 1 3769 3769 5.99 2005-07-06 13:11:33.000 2020-12-23 07:22:44
15192 567 567 2 2 4457 4457 0.99 2005-07-07 23:45:38.000 2020-12-23 07:22:44
15193 567 567 2 2 4576 4576 0.99 2005-07-08 05:51:19.000 2020-12-23 07:22:44
15194 567 567 1 1 4949 4949 4.99 2005-07-08 22:57:10.000 2020-12-23 07:22:44
15195 567 567 2 2 6358 6358 2.99 2005-07-11 21:03:12.000 2020-12-23 07:22:44
15196 567 567 2 2 6551 6551 0.99 2005-07-12 05:03:43.000 2020-12-23 07:22:44
15197 567 567 2 2 7340 7340 2.99 2005-07-27 14:18:10.000 2020-12-23 07:22:44
15198 567 567 1 1 8201 8201 2.99 2005-07-28 23:10:48.000 2020-12-23 07:22:44
15199 567 567 1 1 8629 8629 2.99 2005-07-29 14:06:35.000 2020-12-23 07:22:44
15200 567 567 1 1 9279 9279 7.99 2005-07-30 15:15:21.000 2020-12-23 07:22:44
15201 567 567 1 1 9475 9475 6.99 2005-07-30 23:06:33.000 2020-12-23 07:22:44
15202 567 567 2 2 10708 10708 7.99 2005-08-01 18:43:28.000 2020-12-23 07:22:44
15203 567 567 2 2 11749 11749 2.99 2005-08-17 09:04:03.000 2020-12-23 07:22:44
15204 567 567 1 1 12119 12119 2.99 2005-08-17 23:16:44.000 2020-12-23 07:22:44
15205 567 567 2 2 13031 13031 2.99 2005-08-19 08:30:04.000 2020-12-23 07:22:44
15206 567 567 2 2 14839 14839 2.99 2005-08-22 01:58:15.000 2020-12-23 07:22:44
15207 567 567 2 2 15074 15074 5.99 2005-08-22 11:02:52.000 2020-12-23 07:22:44
15208 567 567 2 2 15594 15594 10.99 2005-08-23 06:18:43.000 2020-12-23 07:22:44

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