Hi all,
I want to get result for a praricular ID if all days are present.
But I am getting result if any of the day present in between the date
select StarRate, Date from vw_BasicSearch where date BETWEEN CAST('2008-06-03' AS DATETIME)
AND CAST('2008-06-05' AS DATETIME)
AND StarRate = 5
group by StarRate, Date
Result.
StarRate Date
--------------------------
5 2008-06-04 00:00:00.000
5 2008-06-05 00:00:00.000
Thanks
I want to get result for a praricular ID if all days are present.
But I am getting result if any of the day present in between the date
select StarRate, Date from vw_BasicSearch where date BETWEEN CAST('2008-06-03' AS DATETIME)
AND CAST('2008-06-05' AS DATETIME)
AND StarRate = 5
group by StarRate, Date
Result.
StarRate Date
--------------------------
5 2008-06-04 00:00:00.000
5 2008-06-05 00:00:00.000
Thanks
Comment