home / sakila

payment

31 rows where customer_id = 416

✎ 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
11239 416 416 2 2 253 253 0.99 2005-05-26 14:43:14.000 2020-12-23 07:21:49
11240 416 416 2 2 724 724 3.99 2005-05-29 05:53:23.000 2020-12-23 07:21:49
11241 416 416 2 2 1031 1031 2.99 2005-05-31 04:23:01.000 2020-12-23 07:21:49
11242 416 416 2 2 1158 1158 2.99 2005-06-14 22:53:33.000 2020-12-23 07:21:49
11243 416 416 1 1 1343 1343 4.99 2005-06-15 12:27:19.000 2020-12-23 07:21:49
11244 416 416 2 2 1553 1553 0.99 2005-06-16 02:02:44.000 2020-12-23 07:21:49
11245 416 416 2 2 1596 1596 2.99 2005-06-16 05:30:58.000 2020-12-23 07:21:49
11246 416 416 2 2 1771 1771 0.99 2005-06-16 18:12:17.000 2020-12-23 07:21:49
11247 416 416 1 1 3833 3833 3.99 2005-07-06 16:18:28.000 2020-12-23 07:21:49
11248 416 416 1 1 3868 3868 2.99 2005-07-06 17:54:13.000 2020-12-23 07:21:49
11249 416 416 1 1 6097 6097 2.99 2005-07-11 06:21:43.000 2020-12-23 07:21:49
11250 416 416 1 1 6879 6879 7.99 2005-07-12 20:37:37.000 2020-12-23 07:21:49
11251 416 416 1 1 7889 7889 0.99 2005-07-28 10:43:21.000 2020-12-23 07:21:49
11252 416 416 1 1 7917 7917 2.99 2005-07-28 11:56:57.000 2020-12-23 07:21:49
11253 416 416 2 2 8349 8349 5.99 2005-07-29 04:50:22.000 2020-12-23 07:21:49
11254 416 416 2 2 8588 8588 2.99 2005-07-29 12:22:20.000 2020-12-23 07:21:50
11255 416 416 2 2 8648 8648 2.99 2005-07-29 14:56:21.000 2020-12-23 07:21:50
11256 416 416 2 2 9383 9383 2.99 2005-07-30 19:24:50.000 2020-12-23 07:21:50
11257 416 416 1 1 10254 10254 3.99 2005-08-01 02:42:03.000 2020-12-23 07:21:50
11258 416 416 1 1 10354 10354 2.99 2005-08-01 05:47:10.000 2020-12-23 07:21:50
11259 416 416 1 1 10742 10742 6.99 2005-08-01 19:53:13.000 2020-12-23 07:21:50
11260 416 416 1 1 10937 10937 6.99 2005-08-02 03:00:18.000 2020-12-23 07:21:50
11261 416 416 2 2 11047 11047 5.99 2005-08-02 06:09:20.000 2020-12-23 07:21:50
11262 416 416 1 1 11557 11557 6.99 2005-08-17 01:19:20.000 2020-12-23 07:21:50
11263 416 416 1 1 12722 12722 8.99 2005-08-18 21:33:53.000 2020-12-23 07:21:50
11264 416 416 1 1 12932 12932 4.99 2005-08-19 05:17:30.000 2020-12-23 07:21:50
11265 416 416 1 1 14239 14239 4.99 2005-08-21 05:18:57.000 2020-12-23 07:21:50
11266 416 416 1 1 15235 15235 1.99 2005-08-22 17:43:12.000 2020-12-23 07:21:50
11267 416 416 2 2 15470 15470 4.99 2005-08-23 01:35:12.000 2020-12-23 07:21:50
11268 416 416 1 1 15727 15727 2.99 2005-08-23 11:28:49.000 2020-12-23 07:21:50
11269 416 416 2 2 15761 15761 0.99 2005-08-23 12:55:51.000 2020-12-23 07:21:50

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