Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I am trying to write a query that needs to eliminate couple of values(ID's) from a field(EmployeeID) so I am using Not WildMatch function as below
Where Not WildMatch (EmployeeID,'22156', '22160','22340', '*23*');
But that function is also eliminating Null values in the EmployeeID field. Could someone help me how we can eliminate those ID's but include Null values?
Thanks
What about adding a condition for the null values like this
Where (
isnull(EmployeeID) OR Not WildMatch (EmployeeID,'22156', '22160','22340', '*23*')
);
What about adding a condition for the null values like this
Where (
isnull(EmployeeID) OR Not WildMatch (EmployeeID,'22156', '22160','22340', '*23*')
);
Try like this,
Where Not WildMatch (If(IsNull(EmployeeID),'ITSNULL',EmployeeID),'22156', '22160','22340', '*23*');
Thank You So much!! This works 😀
Thank You for your response!!