I am trying to create a query where when you do not input value in @date
variable it will show result in SQL.
declare @Holiday varchar(50), @Date date
set @holiday = null
set @date = null
Select *
from tbl_Holiday
where Holiday like '%' + isnull(@Holiday,'') + '%'
and HDate = @Date
The above codes are the one I'm using. When I comment the last line of code it works fine, but I need to find a way to use the date for searching. Thank you for future responses.