home / sakila

payment

23 rows where customer_id = 453

✎ 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
12225 453 453 2 2 2852 2852 5.99 2005-06-19 23:08:50.000 2020-12-23 07:22:03
12226 453 453 1 1 2853 2853 7.99 2005-06-19 23:09:41.000 2020-12-23 07:22:03
12227 453 453 2 2 2887 2887 4.99 2005-06-20 01:39:43.000 2020-12-23 07:22:04
12228 453 453 2 2 3929 3929 0.99 2005-07-06 20:52:39.000 2020-12-23 07:22:04
12229 453 453 2 2 4033 4033 8.99 2005-07-07 02:35:46.000 2020-12-23 07:22:04
12230 453 453 1 1 4717 4717 4.99 2005-07-08 12:22:43.000 2020-12-23 07:22:04
12231 453 453 2 2 4805 4805 2.99 2005-07-08 16:59:12.000 2020-12-23 07:22:04
12232 453 453 2 2 5359 5359 6.99 2005-07-09 18:10:52.000 2020-12-23 07:22:04
12233 453 453 1 1 6752 6752 4.99 2005-07-12 14:53:15.000 2020-12-23 07:22:04
12234 453 453 1 1 7563 7563 0.99 2005-07-27 22:25:36.000 2020-12-23 07:22:04
12235 453 453 2 2 9289 9289 6.99 2005-07-30 15:57:04.000 2020-12-23 07:22:04
12236 453 453 2 2 9406 9406 6.99 2005-07-30 20:24:00.000 2020-12-23 07:22:04
12237 453 453 2 2 9900 9900 1.99 2005-07-31 14:15:05.000 2020-12-23 07:22:04
12238 453 453 1 1 11794 11794 4.99 2005-08-17 11:08:48.000 2020-12-23 07:22:04
12239 453 453 1 1 12703 12703 2.99 2005-08-18 20:37:13.000 2020-12-23 07:22:04
12240 453 453 1 1 13711 13711 7.99 2005-08-20 09:35:20.000 2020-12-23 07:22:04
12241 453 453 1 1 13785 13785 4.99 2005-08-20 12:11:46.000 2020-12-23 07:22:04
12242 453 453 1 1 14133 14133 2.99 2005-08-21 01:44:14.000 2020-12-23 07:22:04
12243 453 453 2 2 14306 14306 5.99 2005-08-21 07:32:35.000 2020-12-23 07:22:04
12244 453 453 2 2 14644 14644 4.99 2005-08-21 19:12:12.000 2020-12-23 07:22:04
12245 453 453 1 1 14652 14652 4.99 2005-08-21 19:32:05.000 2020-12-23 07:22:04
12246 453 453 1 1 15252 15252 0.99 2005-08-22 18:04:22.000 2020-12-23 07:22:04
12247 453 453 2 2 15627 15627 4.99 2005-08-23 07:25:38.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 9.777ms