home / sakila

payment

20 rows where customer_id = 203

✎ 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
5496 203 203 1 1 314 314 0.99 2005-05-26 23:09:41.000 2020-12-23 07:20:28
5497 203 203 1 1 1217 1217 4.99 2005-06-15 03:24:14.000 2020-12-23 07:20:28
5498 203 203 1 1 1715 1715 2.99 2005-06-16 14:37:12.000 2020-12-23 07:20:28
5499 203 203 2 2 2939 2939 7.99 2005-06-20 05:18:16.000 2020-12-23 07:20:28
5500 203 203 2 2 3406 3406 2.99 2005-06-21 16:00:18.000 2020-12-23 07:20:28
5501 203 203 2 2 4136 4136 2.99 2005-07-07 08:15:52.000 2020-12-23 07:20:28
5502 203 203 2 2 5579 5579 5.99 2005-07-10 04:04:29.000 2020-12-23 07:20:28
5503 203 203 2 2 7787 7787 6.99 2005-07-28 07:19:02.000 2020-12-23 07:20:28
5504 203 203 1 1 8039 8039 0.99 2005-07-28 16:35:16.000 2020-12-23 07:20:28
5505 203 203 1 1 8463 8463 4.99 2005-07-29 08:17:51.000 2020-12-23 07:20:28
5506 203 203 1 1 8792 8792 7.99 2005-07-29 20:56:14.000 2020-12-23 07:20:28
5507 203 203 2 2 9015 9015 10.99 2005-07-30 05:21:32.000 2020-12-23 07:20:28
5508 203 203 2 2 10700 10700 3.99 2005-08-01 18:26:31.000 2020-12-23 07:20:28
5509 203 203 2 2 10805 10805 2.99 2005-08-01 22:23:37.000 2020-12-23 07:20:28
5510 203 203 1 1 11712 11712 2.99 2005-08-17 07:32:51.000 2020-12-23 07:20:28
5511 203 203 1 1 12519 12519 0.99 2005-08-18 13:42:14.000 2020-12-23 07:20:28
5512 203 203 2 2 13841 13841 4.99 2005-08-20 14:25:18.000 2020-12-23 07:20:28
5513 203 203 2 2 14505 14505 5.99 2005-08-21 14:26:28.000 2020-12-23 07:20:28
5514 203 203 2 2 15798 15798 2.99 2005-08-23 14:23:03.000 2020-12-23 07:20:28
5515 203 203 2 2 15991 15991 2.99 2005-08-23 20:27:34.000 2020-12-23 07:20:28

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