Multiply newly entered row with another column value and find Total Sum in SQL
问题 I have 4 tables here, I need to multiply newly entered row value in a table with another row and find the total sum using CustomerId : CustomerTable : CustomerId Name EmailId ------------------------- 1 Paul r@r.com 2 John J@j.com LoyaltyPointTable : LoyaltyPointsId LoyaltyType Points --------------------------------------- 1 Registration 10 2 Loginstatus 1 3 Downloading 10 4 Redemming 1 5 Sharing 20 6 Refer 10 LoyaltyDetailsTable : LoyaltyDetailsId LoyaltyPointsId CustomerId Dates ----------