Guest_imported
New member
- Jan 1, 1970
- 0
I have tried the following IIf query which is not working
iif(ID_LEVEL='0','1',reverse(substring(reverse(ID_LEVEL),charindex('.',reverse(ID_LEVEL))+1,LEN(ID_LEVEL))) which does not work. Can anybody teel me the right syntax as it gives a syntax error.
if id_level is 0 then return 1 else execute the query :
reverse(substring(reverse(ID_LEVEL),charindex('.',reverse(ID_LEVEL))+1,LEN(ID_LEVEL))