home / sakila

payment

32 rows where customer_id = 406

✎ 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
10973 406 406 1 1 855 855 0.99 2005-05-30 02:00:28.000 2020-12-23 07:21:46
10974 406 406 1 1 2113 2113 4.99 2005-06-17 19:57:46.000 2020-12-23 07:21:46
10975 406 406 2 2 2150 2150 3.99 2005-06-17 22:50:36.000 2020-12-23 07:21:46
10976 406 406 1 1 2241 2241 2.99 2005-06-18 04:31:41.000 2020-12-23 07:21:46
10977 406 406 2 2 2325 2325 0.99 2005-06-18 10:08:07.000 2020-12-23 07:21:46
10978 406 406 2 2 2585 2585 0.99 2005-06-19 05:05:03.000 2020-12-23 07:21:46
10979 406 406 1 1 3186 3186 7.99 2005-06-20 23:04:20.000 2020-12-23 07:21:46
10980 406 406 1 1 3306 3306 4.99 2005-06-21 07:46:58.000 2020-12-23 07:21:46
10981 406 406 2 2 4264 4264 4.99 2005-07-07 14:25:28.000 2020-12-23 07:21:46
10982 406 406 2 2 5098 5098 4.99 2005-07-09 06:13:54.000 2020-12-23 07:21:46
10983 406 406 2 2 5263 5263 0.99 2005-07-09 14:10:36.000 2020-12-23 07:21:46
10984 406 406 1 1 5766 5766 0.99 2005-07-10 13:07:31.000 2020-12-23 07:21:46
10985 406 406 2 2 6439 6439 2.99 2005-07-12 00:23:48.000 2020-12-23 07:21:46
10986 406 406 2 2 7109 7109 5.99 2005-07-27 05:28:57.000 2020-12-23 07:21:46
10987 406 406 1 1 7171 7171 4.99 2005-07-27 07:58:35.000 2020-12-23 07:21:46
10988 406 406 1 1 7259 7259 4.99 2005-07-27 11:06:00.000 2020-12-23 07:21:46
10989 406 406 2 2 7604 7604 7.99 2005-07-27 23:54:52.000 2020-12-23 07:21:46
10990 406 406 2 2 8080 8080 4.99 2005-07-28 18:05:06.000 2020-12-23 07:21:46
10991 406 406 2 2 8295 8295 2.99 2005-07-29 02:42:14.000 2020-12-23 07:21:46
10992 406 406 2 2 8630 8630 0.99 2005-07-29 14:07:59.000 2020-12-23 07:21:46
10993 406 406 1 1 8903 8903 0.99 2005-07-30 01:08:06.000 2020-12-23 07:21:46
10994 406 406 2 2 8962 8962 1.99 2005-07-30 03:43:45.000 2020-12-23 07:21:46
10995 406 406 2 2 9224 9224 0.99 2005-07-30 13:25:37.000 2020-12-23 07:21:46
10996 406 406 1 1 9291 9291 4.99 2005-07-30 16:03:39.000 2020-12-23 07:21:46
10997 406 406 2 2 9487 9487 2.99 2005-07-30 23:40:22.000 2020-12-23 07:21:46
10998 406 406 1 1 9660 9660 8.99 2005-07-31 06:03:17.000 2020-12-23 07:21:46
10999 406 406 1 1 10632 10632 1.99 2005-08-01 15:36:56.000 2020-12-23 07:21:46
11000 406 406 1 1 11603 11603 4.99 2005-08-17 03:22:10.000 2020-12-23 07:21:46
11001 406 406 2 2 12505 12505 5.99 2005-08-18 13:17:30.000 2020-12-23 07:21:46
11002 406 406 2 2 14205 14205 6.99 2005-08-21 03:57:15.000 2020-12-23 07:21:46
11003 406 406 2 2 14421 14421 2.99 2005-08-21 11:20:21.000 2020-12-23 07:21:46
11004 406 406 2 2 14601 14601 2.99 2005-08-21 17:45:52.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 11.729ms