For the table t1 given in picture below, how to find the PurchaseAmount delta for each UserID, ProductID pair in sql?