I want to make a query which will give me the list of not empty data from SQL. I wrote a query but not working. Please help
SELECT * FROM [EmployeePIMSInfo]
WHERE [Group] = 'Dhaka' and [SalaryRuleCode] != ('Rule-EXP') and
[Status] = 'Active' and Designation = 'Peon'
and (EMail != '' or EMail is not null)
EMail != ''- that implicitly excludesNULLanyway here