How do I return a constant from an sql statement?
For example how would I change the code below so "my message" would return if my (boolean expression) was true
if (my boolean expression)
"my message"
else
select top 1 name from people;
I am using ms sql 2000
Did you try:
select 'my message';