home / sakila

payment

20 rows where customer_id = 272

✎ 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
7347 272 272 1 1 33 33 0.99 2005-05-25 04:18:51.000 2020-12-23 07:20:53
7348 272 272 1 1 405 405 6.99 2005-05-27 13:32:39.000 2020-12-23 07:20:53
7349 272 272 1 1 1041 1041 6.99 2005-05-31 05:46:23.000 2020-12-23 07:20:53
7350 272 272 1 1 1072 1072 0.99 2005-05-31 09:52:50.000 2020-12-23 07:20:53
7351 272 272 2 2 1604 1604 4.99 2005-06-16 06:14:25.000 2020-12-23 07:20:53
7352 272 272 2 2 2546 2546 5.99 2005-06-19 02:39:39.000 2020-12-23 07:20:53
7353 272 272 1 1 3323 3323 5.99 2005-06-21 08:45:33.000 2020-12-23 07:20:53
7354 272 272 2 2 5047 5047 3.99 2005-07-09 03:44:15.000 2020-12-23 07:20:53
7355 272 272 2 2 5158 5158 2.99 2005-07-09 08:53:09.000 2020-12-23 07:20:53
7356 272 272 2 2 7300 7300 7.99 2005-07-27 12:50:17.000 2020-12-23 07:20:53
7357 272 272 2 2 7658 7658 2.99 2005-07-28 02:09:12.000 2020-12-23 07:20:53
7358 272 272 1 1 8248 8248 7.99 2005-07-29 00:41:56.000 2020-12-23 07:20:53
7359 272 272 2 2 9787 9787 10.99 2005-07-31 10:26:19.000 2020-12-23 07:20:53
7360 272 272 1 1 10736 10736 2.99 2005-08-01 19:30:21.000 2020-12-23 07:20:53
7361 272 272 2 2 11003 11003 2.99 2005-08-02 05:03:05.000 2020-12-23 07:20:53
7362 272 272 2 2 11597 11597 8.99 2005-08-17 03:02:56.000 2020-12-23 07:20:53
7363 272 272 1 1 11881 11881 0.99 2005-08-17 14:31:56.000 2020-12-23 07:20:53
7364 272 272 2 2 12006 12006 6.99 2005-08-17 19:09:12.000 2020-12-23 07:20:53
7365 272 272 2 2 13274 13274 2.99 2005-08-19 17:50:03.000 2020-12-23 07:20:53
7366 272 272 1 1 13903 13903 2.99 2005-08-20 16:07:55.000 2020-12-23 07:20:53

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