home / sakila

payment

14 rows where customer_id = 110

✎ 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
2959 110 110 1 1 515 515 7.99 2005-05-28 03:10:10.000 2020-12-23 07:19:52
2960 110 110 2 2 538 538 1.99 2005-05-28 06:21:05.000 2020-12-23 07:19:52
2961 110 110 2 2 1528 1528 8.99 2005-06-16 00:32:52.000 2020-12-23 07:19:52
2962 110 110 1 1 3587 3587 4.99 2005-07-06 04:27:52.000 2020-12-23 07:19:52
2963 110 110 1 1 4317 4317 2.99 2005-07-07 17:44:49.000 2020-12-23 07:19:52
2964 110 110 2 2 4827 4827 4.99 2005-07-08 17:46:30.000 2020-12-23 07:19:52
2965 110 110 1 1 6160 6160 4.99 2005-07-11 10:08:13.000 2020-12-23 07:19:52
2966 110 110 1 1 7474 7474 0.99 2005-07-27 19:07:17.000 2020-12-23 07:19:52
2967 110 110 2 2 7542 7542 0.99 2005-07-27 21:43:04.000 2020-12-23 07:19:52
2968 110 110 1 1 7570 7570 2.99 2005-07-27 22:40:06.000 2020-12-23 07:19:52
2969 110 110 1 1 11647 11647 7.99 2005-08-17 04:54:14.000 2020-12-23 07:19:52
2970 110 110 2 2 12585 12585 3.99 2005-08-18 15:52:12.000 2020-12-23 07:19:52
2971 110 110 1 1 13723 13723 2.99 2005-08-20 10:05:30.000 2020-12-23 07:19:52
2972 110 110 2 2 15381 15381 2.99 2005-08-22 22:28:36.000 2020-12-23 07:19:52

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