on 04-10-2009 11:33 AM
Hi Guys,
I'm trying to do a a formatted search with a query that will look up the value of a field(the field that will have the formatted search), and replace it with nothing(the field becomes blank) if it is a particular value.The syntax I'm using is:
Select WHEN $[OSRI.U_Cont_No] = 'EMPTY' THEN NULL
Can anybody help me with the correct sytax for this query?
Thanks in advance for your help.
Best Regards
Try this one:
SELECT case when $[OSRI.U_Cont_No]='EMPTY' then NULL else $[OPOR.U_Cont_No] end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Try this
Select CASE WHEN ($[$OSRI.U_Cont_No] IS NULL OR $[$OSRI.U_Cont_No] = ' ') THEN ' ' END
Jeyakanthan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.