home / sakila

payment

32 rows where customer_id = 405

✎ 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
10941 405 405 1 1 121 121 2.99 2005-05-25 19:41:29.000 2020-12-23 07:21:46
10942 405 405 2 2 770 770 4.99 2005-05-29 12:56:50.000 2020-12-23 07:21:46
10943 405 405 2 2 1315 1315 4.99 2005-06-15 10:23:08.000 2020-12-23 07:21:46
10944 405 405 1 1 1888 1888 0.99 2005-06-17 03:58:36.000 2020-12-23 07:21:46
10945 405 405 2 2 1953 1953 5.99 2005-06-17 08:34:57.000 2020-12-23 07:21:46
10946 405 405 2 2 2654 2654 3.99 2005-06-19 10:37:54.000 2020-12-23 07:21:46
10947 405 405 1 1 3240 3240 4.99 2005-06-21 02:53:17.000 2020-12-23 07:21:46
10948 405 405 1 1 3253 3253 5.99 2005-06-21 03:25:37.000 2020-12-23 07:21:46
10949 405 405 2 2 4223 4223 0.99 2005-07-07 12:23:54.000 2020-12-23 07:21:46
10950 405 405 2 2 4401 4401 0.99 2005-07-07 21:26:27.000 2020-12-23 07:21:46
10951 405 405 2 2 5040 5040 7.99 2005-07-09 03:16:34.000 2020-12-23 07:21:46
10952 405 405 1 1 5231 5231 0.99 2005-07-09 12:35:02.000 2020-12-23 07:21:46
10953 405 405 2 2 5512 5512 1.99 2005-07-10 01:05:38.000 2020-12-23 07:21:46
10954 405 405 1 1 6110 6110 2.99 2005-07-11 07:23:47.000 2020-12-23 07:21:46
10955 405 405 1 1 7455 7455 2.99 2005-07-27 18:34:41.000 2020-12-23 07:21:46
10956 405 405 1 1 7759 7759 0.99 2005-07-28 06:28:45.000 2020-12-23 07:21:46
10957 405 405 2 2 8482 8482 2.99 2005-07-29 08:46:33.000 2020-12-23 07:21:46
10958 405 405 1 1 8955 8955 5.99 2005-07-30 03:28:27.000 2020-12-23 07:21:46
10959 405 405 1 1 9569 9569 0.99 2005-07-31 02:39:38.000 2020-12-23 07:21:46
10960 405 405 1 1 10472 10472 4.99 2005-08-01 09:54:41.000 2020-12-23 07:21:46
10961 405 405 2 2 10823 10823 4.99 2005-08-01 22:59:10.000 2020-12-23 07:21:46
10962 405 405 1 1 11345 11345 7.99 2005-08-02 17:14:19.000 2020-12-23 07:21:46
10963 405 405 1 1 12050 12050 0.99 2005-08-17 20:55:25.000 2020-12-23 07:21:46
10964 405 405 2 2 12425 12425 5.99 2005-08-18 10:18:06.000 2020-12-23 07:21:46
10965 405 405 1 1 13304 13304 1.99 2005-08-19 18:56:32.000 2020-12-23 07:21:46
10966 405 405 1 1 13398 13398 0.99 2005-08-19 22:08:48.000 2020-12-23 07:21:46
10967 405 405 1 1 14274 14274 4.99 2005-08-21 06:29:20.000 2020-12-23 07:21:46
10968 405 405 2 2 14537 14537 0.99 2005-08-21 15:24:24.000 2020-12-23 07:21:46
10969 405 405 1 1 15072 15072 1.99 2005-08-22 10:58:45.000 2020-12-23 07:21:46
10970 405 405 2 2 15383 15383 2.99 2005-08-22 22:31:20.000 2020-12-23 07:21:46
10971 405 405 1 1 15932 15932 4.99 2005-08-23 18:31:40.000 2020-12-23 07:21:46
10972 405 405 1 1 12792 12792 0.99 2006-02-14 15:16:03.000 2020-12-23 07:21:46

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