I have an Sp to select some values from a table and there is a left outer join, and the condition of the join is to select with respect to from and to dates.
I need to select data b/w these two dates.
this is how the part looks like
SELECT *// all the needed columns
FROM mytable
//other joins
LEFT OUTER JOIN myview ON
//some conditions
myview .soldDate between @fromdate and @todate
The selection works fine, it selecting only data b/w those dates, but also selcting null dates.
How do I avoid selecting these null values?