home / sakila

payment

32 rows where customer_id = 306

✎ 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
8294 306 306 2 2 375 375 3.99 2005-05-27 08:49:21.000 2020-12-23 07:21:07
8295 306 306 2 2 672 672 6.99 2005-05-28 22:05:29.000 2020-12-23 07:21:07
8296 306 306 2 2 1172 1172 0.99 2005-06-14 23:54:34.000 2020-12-23 07:21:07
8297 306 306 2 2 2836 2836 6.99 2005-06-19 21:58:21.000 2020-12-23 07:21:07
8298 306 306 1 1 3814 3814 6.99 2005-07-06 15:23:56.000 2020-12-23 07:21:07
8299 306 306 2 2 4484 4484 5.99 2005-07-08 01:05:57.000 2020-12-23 07:21:07
8300 306 306 2 2 4596 4596 1.99 2005-07-08 06:41:25.000 2020-12-23 07:21:07
8301 306 306 2 2 5581 5581 2.99 2005-07-10 04:06:06.000 2020-12-23 07:21:07
8302 306 306 2 2 6868 6868 2.99 2005-07-12 20:10:17.000 2020-12-23 07:21:07
8303 306 306 1 1 6953 6953 4.99 2005-07-26 23:52:47.000 2020-12-23 07:21:07
8304 306 306 1 1 7225 7225 6.99 2005-07-27 09:47:12.000 2020-12-23 07:21:07
8305 306 306 1 1 7232 7232 4.99 2005-07-27 10:04:19.000 2020-12-23 07:21:07
8306 306 306 2 2 7701 7701 2.99 2005-07-28 03:54:28.000 2020-12-23 07:21:07
8307 306 306 2 2 8620 8620 0.99 2005-07-29 13:51:20.000 2020-12-23 07:21:07
8308 306 306 1 1 8702 8702 0.99 2005-07-29 17:04:37.000 2020-12-23 07:21:07
8309 306 306 2 2 9242 9242 4.99 2005-07-30 14:03:58.000 2020-12-23 07:21:07
8310 306 306 2 2 9395 9395 4.99 2005-07-30 20:07:06.000 2020-12-23 07:21:07
8311 306 306 1 1 9774 9774 0.99 2005-07-31 09:57:51.000 2020-12-23 07:21:07
8312 306 306 1 1 10202 10202 6.99 2005-08-01 00:43:18.000 2020-12-23 07:21:07
8313 306 306 2 2 10893 10893 5.99 2005-08-02 01:12:13.000 2020-12-23 07:21:07
8314 306 306 2 2 11142 11142 4.99 2005-08-02 09:30:11.000 2020-12-23 07:21:07
8315 306 306 1 1 11440 11440 0.99 2005-08-02 20:24:02.000 2020-12-23 07:21:07
8316 306 306 2 2 11674 11674 6.99 2005-08-17 05:56:27.000 2020-12-23 07:21:07
8317 306 306 2 2 11776 11776 0.99 2005-08-17 10:27:19.000 2020-12-23 07:21:07
8318 306 306 1 1 12225 12225 7.99 2005-08-18 03:00:11.000 2020-12-23 07:21:07
8319 306 306 1 1 12989 12989 2.99 2005-08-19 07:19:04.000 2020-12-23 07:21:07
8320 306 306 1 1 13686 13686 4.99 2005-08-20 08:57:28.000 2020-12-23 07:21:07
8321 306 306 2 2 13725 13725 5.99 2005-08-20 10:08:27.000 2020-12-23 07:21:07
8322 306 306 1 1 13873 13873 0.99 2005-08-20 15:11:11.000 2020-12-23 07:21:07
8323 306 306 1 1 13996 13996 4.99 2005-08-20 19:45:43.000 2020-12-23 07:21:07
8324 306 306 1 1 15457 15457 2.99 2005-08-23 01:07:37.000 2020-12-23 07:21:07
8325 306 306 2 2 15868 15868 7.99 2005-08-23 16:19:14.000 2020-12-23 07:21:07

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.843ms