home / sakila

payment

19 rows where customer_id = 195

✎ 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
5262 195 195 1 1 4234 4234 6.99 2005-07-07 13:01:35.000 2020-12-23 07:20:24
5263 195 195 1 1 4315 4315 2.99 2005-07-07 17:40:26.000 2020-12-23 07:20:24
5264 195 195 1 1 5228 5228 4.99 2005-07-09 12:26:01.000 2020-12-23 07:20:24
5265 195 195 1 1 5536 5536 0.99 2005-07-10 02:29:42.000 2020-12-23 07:20:24
5266 195 195 2 2 6175 6175 4.99 2005-07-11 10:44:37.000 2020-12-23 07:20:24
5267 195 195 1 1 7349 7349 2.99 2005-07-27 14:33:00.000 2020-12-23 07:20:24
5268 195 195 2 2 8280 8280 4.99 2005-07-29 01:45:51.000 2020-12-23 07:20:24
5269 195 195 2 2 8479 8479 0.99 2005-07-29 08:42:04.000 2020-12-23 07:20:24
5270 195 195 2 2 9188 9188 6.99 2005-07-30 12:19:54.000 2020-12-23 07:20:24
5271 195 195 1 1 9870 9870 5.99 2005-07-31 13:22:51.000 2020-12-23 07:20:24
5272 195 195 1 1 9994 9994 4.99 2005-07-31 17:30:31.000 2020-12-23 07:20:24
5273 195 195 2 2 10911 10911 4.99 2005-08-02 01:58:36.000 2020-12-23 07:20:24
5274 195 195 1 1 11201 11201 7.99 2005-08-02 11:49:16.000 2020-12-23 07:20:24
5275 195 195 2 2 11787 11787 2.99 2005-08-17 10:59:00.000 2020-12-23 07:20:25
5276 195 195 2 2 12099 12099 0.99 2005-08-17 22:38:54.000 2020-12-23 07:20:25
5277 195 195 2 2 12941 12941 0.99 2005-08-19 05:39:26.000 2020-12-23 07:20:25
5278 195 195 2 2 13741 13741 0.99 2005-08-20 10:48:47.000 2020-12-23 07:20:25
5279 195 195 2 2 14751 14751 7.99 2005-08-21 23:11:23.000 2020-12-23 07:20:25
5280 195 195 2 2 16040 16040 11.99 2005-08-23 22:19:33.000 2020-12-23 07:20:25

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