General information
Forum:
Microsoft SQL Server
>I am not sure if this would work inside of SELECT statement.
>What I am trying to do is:
>
>SELECT FROM myTable.*, IIF(myTable.GoodBad, "Good", "Bad") as MyExp
>
>I need to add few calculated fields to my query.
See Sergey's reply. Also read the SQL books online on CASE (T-SQL).
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only