home / sakila

payment

18 rows where customer_id = 255

✎ 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
6871 255 255 1 1 1235 1235 2.99 2005-06-15 04:31:28.000 2020-12-23 07:20:46
6872 255 255 1 1 1420 1420 6.99 2005-06-15 17:56:14.000 2020-12-23 07:20:46
6873 255 255 2 2 1681 1681 2.99 2005-06-16 11:38:17.000 2020-12-23 07:20:46
6874 255 255 2 2 3442 3442 2.99 2005-06-21 20:06:51.000 2020-12-23 07:20:46
6875 255 255 1 1 4547 4547 0.99 2005-07-08 04:20:19.000 2020-12-23 07:20:46
6876 255 255 1 1 5706 5706 1.99 2005-07-10 10:21:46.000 2020-12-23 07:20:46
6877 255 255 1 1 5943 5943 0.99 2005-07-10 22:48:13.000 2020-12-23 07:20:46
6878 255 255 2 2 7475 7475 8.99 2005-07-27 19:07:43.000 2020-12-23 07:20:46
6879 255 255 1 1 7646 7646 2.99 2005-07-28 01:31:45.000 2020-12-23 07:20:46
6880 255 255 1 1 8562 8562 0.99 2005-07-29 11:32:13.000 2020-12-23 07:20:46
6881 255 255 1 1 9061 9061 6.99 2005-07-30 07:21:52.000 2020-12-23 07:20:46
6882 255 255 2 2 11979 11979 4.99 2005-08-17 18:07:13.000 2020-12-23 07:20:46
6883 255 255 2 2 12176 12176 7.99 2005-08-18 01:10:33.000 2020-12-23 07:20:46
6884 255 255 2 2 13154 13154 2.99 2005-08-19 13:09:54.000 2020-12-23 07:20:46
6885 255 255 1 1 13268 13268 0.99 2005-08-19 17:33:50.000 2020-12-23 07:20:46
6886 255 255 2 2 13683 13683 0.99 2005-08-20 08:54:55.000 2020-12-23 07:20:46
6887 255 255 1 1 13758 13758 8.99 2005-08-20 11:21:26.000 2020-12-23 07:20:47
6888 255 255 2 2 14600 14600 3.99 2005-08-21 17:45:21.000 2020-12-23 07:20:47

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