General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Simplicio
you are right . i dont have nulls but have some blanks that causing this issue.
i changed to following and it worked beautifully
SELECT * FROM it WHERE
(!EMPTY(code) AND INLIST(ALLTRIM(code),'PT01','PT02','PT03','PT04')) OR
(!EMPTY(usercode) AND INLIST(ALLTRIM(usercode),'PT01','PT02','PT03','PT04'))
Thanks for ur help
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