hi friends..
i am using sql server 2005 reporting services..
in database the table contains startdate row and enddate row...
i want the query which display all the contents between these dates... when i externaly pass the startdate and enddate
SELECT *
FROM tmpFilePendStat Post
Where seccd=@seccd
GROUP BY
HAVING (fromdate = CONVERT(smallda tetime, @stdt, 103) AND todate=CONVERT( smalldatetime, @enddt, 103))
but the above query will give only that date contents.... it doesnot display the contents which is present b/w these dates...
how to do this plz help me...
i am using sql server 2005 reporting services..
in database the table contains startdate row and enddate row...
i want the query which display all the contents between these dates... when i externaly pass the startdate and enddate
SELECT *
FROM tmpFilePendStat Post
Where seccd=@seccd
GROUP BY
HAVING (fromdate = CONVERT(smallda tetime, @stdt, 103) AND todate=CONVERT( smalldatetime, @enddt, 103))
but the above query will give only that date contents.... it doesnot display the contents which is present b/w these dates...
how to do this plz help me...
Comment