Link to home
Start Free TrialLog in
Avatar of AndyWF
AndyWF

asked on

IF / ELSE and REPLACE in view creation?

I am creating a view and would like to display something like the following...

If field equals XXX then print 'FOO', else print 'BAR'

... as a new field in the view.

New to T-SQL, thanks in advance for any pointers...
ASKER CERTIFIED SOLUTION
Avatar of Lowfatspread
Lowfatspread
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AndyWF
AndyWF

ASKER

Thank you!  That got me exactly where I needed to be...