In SQL Server 2008, I have a dataset containing costs for East and West. I am adding a new field for a client for Canada, which should be 1.5 times higher than the cost of East or West (which is ever greater). Therefore, I am trying to come up with some sql that I can execute. I tried the following but did not succeed:
UPDATE ShippingCost SET IF EastCost>WestCost Canada= EastCost*1.8 ELSE Canada= WestCost*1.8 ENDIF
I'm sure there is an easy way to do this? Any ideas?
Damon source share