home / sakila

payment

31 rows where customer_id = 260

✎ 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
7013 260 260 1 1 1101 1101 8.99 2005-05-31 14:13:59.000 2020-12-23 07:20:48
7014 260 260 1 1 1626 1626 3.99 2005-06-16 07:49:47.000 2020-12-23 07:20:48
7015 260 260 2 2 2001 2001 2.99 2005-06-17 11:35:09.000 2020-12-23 07:20:48
7016 260 260 2 2 2040 2040 2.99 2005-06-17 14:18:37.000 2020-12-23 07:20:48
7017 260 260 1 1 2091 2091 10.99 2005-06-17 18:09:04.000 2020-12-23 07:20:48
7018 260 260 1 1 2178 2178 0.99 2005-06-18 00:38:35.000 2020-12-23 07:20:48
7019 260 260 1 1 2823 2823 7.99 2005-06-19 20:30:21.000 2020-12-23 07:20:48
7020 260 260 2 2 2958 2958 3.99 2005-06-20 06:56:20.000 2020-12-23 07:20:48
7021 260 260 1 1 3193 3193 0.99 2005-06-20 23:52:30.000 2020-12-23 07:20:48
7022 260 260 2 2 4054 4054 0.99 2005-07-07 03:42:07.000 2020-12-23 07:20:48
7023 260 260 2 2 4741 4741 6.99 2005-07-08 13:31:23.000 2020-12-23 07:20:48
7024 260 260 1 1 4870 4870 2.99 2005-07-08 19:14:45.000 2020-12-23 07:20:48
7025 260 260 2 2 6328 6328 2.99 2005-07-11 19:09:33.000 2020-12-23 07:20:49
7026 260 260 2 2 7072 7072 0.99 2005-07-27 04:02:33.000 2020-12-23 07:20:49
7027 260 260 1 1 7268 7268 1.99 2005-07-27 11:23:09.000 2020-12-23 07:20:49
7028 260 260 1 1 7885 7885 7.99 2005-07-28 10:37:41.000 2020-12-23 07:20:49
7029 260 260 1 1 8475 8475 1.99 2005-07-29 08:37:41.000 2020-12-23 07:20:49
7030 260 260 1 1 8484 8484 2.99 2005-07-29 08:51:59.000 2020-12-23 07:20:49
7031 260 260 1 1 8717 8717 0.99 2005-07-29 17:40:45.000 2020-12-23 07:20:49
7032 260 260 1 1 8933 8933 0.99 2005-07-30 02:36:06.000 2020-12-23 07:20:49
7033 260 260 2 2 9176 9176 4.99 2005-07-30 11:50:54.000 2020-12-23 07:20:49
7034 260 260 2 2 10970 10970 8.99 2005-08-02 04:06:46.000 2020-12-23 07:20:49
7035 260 260 1 1 12852 12852 0.99 2005-08-19 02:12:40.000 2020-12-23 07:20:49
7036 260 260 2 2 13440 13440 2.99 2005-08-19 23:42:52.000 2020-12-23 07:20:49
7037 260 260 1 1 13685 13685 3.99 2005-08-20 08:57:11.000 2020-12-23 07:20:49
7038 260 260 1 1 13966 13966 2.99 2005-08-20 18:28:28.000 2020-12-23 07:20:49
7039 260 260 2 2 13978 13978 0.99 2005-08-20 19:03:25.000 2020-12-23 07:20:49
7040 260 260 2 2 14035 14035 2.99 2005-08-20 21:31:58.000 2020-12-23 07:20:49
7041 260 260 2 2 14441 14441 2.99 2005-08-21 11:59:38.000 2020-12-23 07:20:49
7042 260 260 1 1 14579 14579 7.99 2005-08-21 16:54:47.000 2020-12-23 07:20:49
7043 260 260 1 1 14610 14610 6.99 2005-08-21 17:59:09.000 2020-12-23 07:20:49

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