home / sakila

payment

20 rows where customer_id = 402

✎ 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
10856 402 402 2 2 801 801 1.99 2005-05-29 17:35:50.000 2020-12-23 07:21:44
10857 402 402 2 2 1194 1194 4.99 2005-06-15 01:25:08.000 2020-12-23 07:21:44
10858 402 402 2 2 2490 2490 4.99 2005-06-18 22:00:50.000 2020-12-23 07:21:44
10859 402 402 2 2 2913 2913 2.99 2005-06-20 03:42:27.000 2020-12-23 07:21:44
10860 402 402 2 2 3564 3564 6.99 2005-07-06 03:02:13.000 2020-12-23 07:21:44
10861 402 402 2 2 3612 3612 3.99 2005-07-06 05:37:26.000 2020-12-23 07:21:44
10862 402 402 2 2 3755 3755 5.99 2005-07-06 12:37:16.000 2020-12-23 07:21:44
10863 402 402 1 1 4399 4399 2.99 2005-07-07 21:20:28.000 2020-12-23 07:21:44
10864 402 402 2 2 4604 4604 3.99 2005-07-08 06:58:43.000 2020-12-23 07:21:44
10865 402 402 2 2 5329 5329 4.99 2005-07-09 16:49:46.000 2020-12-23 07:21:45
10866 402 402 2 2 6183 6183 2.99 2005-07-11 11:14:35.000 2020-12-23 07:21:45
10867 402 402 1 1 6283 6283 3.99 2005-07-11 16:47:32.000 2020-12-23 07:21:45
10868 402 402 1 1 7633 7633 0.99 2005-07-28 01:03:41.000 2020-12-23 07:21:45
10869 402 402 2 2 8521 8521 7.99 2005-07-29 10:12:45.000 2020-12-23 07:21:45
10870 402 402 1 1 9657 9657 6.99 2005-07-31 06:00:41.000 2020-12-23 07:21:45
10871 402 402 2 2 9779 9779 0.99 2005-07-31 10:08:33.000 2020-12-23 07:21:45
10872 402 402 2 2 11045 11045 0.99 2005-08-02 06:07:54.000 2020-12-23 07:21:45
10873 402 402 2 2 11549 11549 4.99 2005-08-17 01:01:48.000 2020-12-23 07:21:45
10874 402 402 2 2 11920 11920 0.99 2005-08-17 16:10:19.000 2020-12-23 07:21:45
10875 402 402 1 1 15428 15428 4.99 2005-08-23 00:11:52.000 2020-12-23 07:21:45

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