home / sakila

payment

33 rows where customer_id = 454

✎ 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
12248 454 454 1 1 735 735 7.99 2005-05-29 08:08:13.000 2020-12-23 07:22:04
12249 454 454 2 2 1647 1647 4.99 2005-06-16 09:14:58.000 2020-12-23 07:22:04
12250 454 454 2 2 1844 1844 7.99 2005-06-16 23:53:53.000 2020-12-23 07:22:04
12251 454 454 1 1 1861 1861 1.99 2005-06-17 01:17:31.000 2020-12-23 07:22:04
12252 454 454 1 1 1938 1938 4.99 2005-06-17 07:18:36.000 2020-12-23 07:22:04
12253 454 454 2 2 2048 2048 5.99 2005-06-17 14:55:29.000 2020-12-23 07:22:04
12254 454 454 2 2 2182 2182 5.99 2005-06-18 00:56:18.000 2020-12-23 07:22:04
12255 454 454 1 1 2437 2437 2.99 2005-06-18 18:30:26.000 2020-12-23 07:22:04
12256 454 454 2 2 2666 2666 9.99 2005-06-19 11:17:12.000 2020-12-23 07:22:04
12257 454 454 1 1 3221 3221 2.99 2005-06-21 01:49:47.000 2020-12-23 07:22:04
12258 454 454 1 1 3362 3362 4.99 2005-06-21 12:19:54.000 2020-12-23 07:22:04
12259 454 454 1 1 3622 3622 7.99 2005-07-06 06:05:04.000 2020-12-23 07:22:04
12260 454 454 2 2 4562 4562 4.99 2005-07-08 05:08:32.000 2020-12-23 07:22:04
12261 454 454 2 2 5088 5088 4.99 2005-07-09 05:45:16.000 2020-12-23 07:22:04
12262 454 454 2 2 5446 5446 2.99 2005-07-09 21:59:55.000 2020-12-23 07:22:04
12263 454 454 2 2 6260 6260 4.99 2005-07-11 15:26:29.000 2020-12-23 07:22:04
12264 454 454 2 2 6701 6701 0.99 2005-07-12 12:47:59.000 2020-12-23 07:22:04
12265 454 454 2 2 8481 8481 2.99 2005-07-29 08:45:57.000 2020-12-23 07:22:04
12266 454 454 1 1 8806 8806 0.99 2005-07-29 21:36:34.000 2020-12-23 07:22:04
12267 454 454 2 2 9041 9041 0.99 2005-07-30 06:32:36.000 2020-12-23 07:22:04
12268 454 454 1 1 9372 9372 9.99 2005-07-30 19:04:30.000 2020-12-23 07:22:04
12269 454 454 1 1 10005 10005 3.99 2005-07-31 17:53:51.000 2020-12-23 07:22:04
12270 454 454 2 2 12347 12347 0.99 2005-08-18 07:18:10.000 2020-12-23 07:22:04
12271 454 454 1 1 12553 12553 0.99 2005-08-18 14:46:54.000 2020-12-23 07:22:04
12272 454 454 2 2 13496 13496 8.99 2005-08-20 01:42:29.000 2020-12-23 07:22:04
12273 454 454 2 2 13513 13513 2.99 2005-08-20 02:27:53.000 2020-12-23 07:22:04
12274 454 454 2 2 13694 13694 8.99 2005-08-20 09:13:23.000 2020-12-23 07:22:04
12275 454 454 1 1 13805 13805 6.99 2005-08-20 12:53:12.000 2020-12-23 07:22:04
12276 454 454 1 1 14799 14799 0.99 2005-08-22 00:44:57.000 2020-12-23 07:22:04
12277 454 454 2 2 14843 14843 2.99 2005-08-22 02:05:25.000 2020-12-23 07:22:04
12278 454 454 2 2 15012 15012 4.99 2005-08-22 08:42:32.000 2020-12-23 07:22:04
12279 454 454 1 1 15301 15301 3.99 2005-08-22 19:44:16.000 2020-12-23 07:22:04
12280 454 454 2 2 15608 15608 1.99 2005-08-23 06:55:26.000 2020-12-23 07:22:04

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