SQL Condition based searching ,not working with AND condition
问题 I am implementing search operation (client side searching via stored procedure) i have a 'Nvarchar' type column 'ArticleHeader' and a 'DATE' column 'DateEffective' i am performing conditional based searching by passing @operator, for the fallowing snippet i am trying to search date and article header in Conjunction (AND) i am getting no results how ever if i run them individually they works out fine. Find the snippet : CREATE TABLE #TempItems ( DateEffective DATE, ArticleHeader NVARCHAR(50) )