SELECT T1.[AcctCode],T1.[AcctName] FROM OACT T1
I need T1.AcctName as operating cost if T1.AcctCode like 61
Please help me to get this thing.
Use CASE
SELECT T1.[AcctCode],
AcctName = CASE WHEN T1.[AcctCode] = 61
THEN 'operating cost'
ELSE T1.[AcctName]
END
FROM OACT T1
casestatement?