I have a query in SQL Server with the following where
condition
where (Convert(date,AppDate) between Convert(date,''+@DateFrom +'') AND
Convert(date,''+@DateTo+'') and DrCode = '' +@DrCode+'' )
But I want to add and DrCode = '' +@DrCode+''
when DrCode>0
How to set it?