Hello, I'm trying to use the case statement to test a condition ,if meets it overides an existing value, if does not meet the condition it displays the default value.I'm getting the following error on my Select - Case Statement.Incorrect syntax near the keyword 'CASE'.
Here is my code:Select SSN, EmpNo, Company, TestValue, StopDateCASE when TestValue = 'A' and stopdate is null then Company = 'XXX' else companyendFROM tables...
Any advise?