Hellow People,
I just want to ask if this statement is possible or there is a way to do same with this one because I tried this in Sybase SQL and it works.
SELECT TransCode, Description, Status = Case When Status_ID = '01' Then 'Active' else 'Inactive' end
From t_Trans WHERE Status = 'Active'
Please check on the variable field Status which I used it in the where clause condition. I tried this in MSSQL but it doesn't work.
JBats
Good is not better if not than best...
I just want to ask if this statement is possible or there is a way to do same with this one because I tried this in Sybase SQL and it works.
SELECT TransCode, Description, Status = Case When Status_ID = '01' Then 'Active' else 'Inactive' end
From t_Trans WHERE Status = 'Active'
Please check on the variable field Status which I used it in the where clause condition. I tried this in MSSQL but it doesn't work.
JBats
Good is not better if not than best...