home / sakila

payment

21 rows where customer_id = 238

✎ 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
6419 238 238 2 2 315 315 4.99 2005-05-26 23:12:55.000 2020-12-23 07:20:39
6420 238 238 1 1 842 842 2.99 2005-05-30 00:32:04.000 2020-12-23 07:20:39
6421 238 238 1 1 1199 1199 2.99 2005-06-15 01:58:50.000 2020-12-23 07:20:39
6422 238 238 1 1 1660 1660 4.99 2005-06-16 10:12:55.000 2020-12-23 07:20:39
6423 238 238 1 1 3181 3181 2.99 2005-06-20 22:51:02.000 2020-12-23 07:20:39
6424 238 238 1 1 4143 4143 0.99 2005-07-07 08:22:07.000 2020-12-23 07:20:39
6425 238 238 1 1 5616 5616 5.99 2005-07-10 05:21:11.000 2020-12-23 07:20:39
6426 238 238 2 2 6403 6403 0.99 2005-07-11 22:46:25.000 2020-12-23 07:20:40
6427 238 238 2 2 7243 7243 4.99 2005-07-27 10:26:11.000 2020-12-23 07:20:40
6428 238 238 1 1 8310 8310 8.99 2005-07-29 03:25:56.000 2020-12-23 07:20:40
6429 238 238 1 1 8382 8382 6.99 2005-07-29 05:33:21.000 2020-12-23 07:20:40
6430 238 238 1 1 8465 8465 0.99 2005-07-29 08:20:49.000 2020-12-23 07:20:40
6431 238 238 1 1 9065 9065 4.99 2005-07-30 07:25:09.000 2020-12-23 07:20:40
6432 238 238 2 2 9841 9841 7.99 2005-07-31 12:24:19.000 2020-12-23 07:20:40
6433 238 238 1 1 10659 10659 5.99 2005-08-01 16:40:34.000 2020-12-23 07:20:40
6434 238 238 2 2 11543 11543 5.99 2005-08-17 00:54:28.000 2020-12-23 07:20:40
6435 238 238 2 2 11632 11632 2.99 2005-08-17 04:29:32.000 2020-12-23 07:20:40
6436 238 238 1 1 11897 11897 2.99 2005-08-17 15:24:06.000 2020-12-23 07:20:40
6437 238 238 1 1 14312 14312 4.99 2005-08-21 07:48:34.000 2020-12-23 07:20:40
6438 238 238 1 1 14343 14343 8.99 2005-08-21 08:40:21.000 2020-12-23 07:20:40
6439 238 238 1 1 15455 15455 0.99 2005-08-23 01:05:00.000 2020-12-23 07:20:40

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