[sub]____________ signature below ______________
The worst mistake you'll ever make is to do something simply the way you know how while ignoring the way it should be done[/sub]
Friends I found the answer to this by myself.I added a column to the table (Table variable for temp result)
called DateId Which will be having id on the basis of DATETIME VALUE in the Order table Then I can order on the basis of DateId
There is No need to add a column on the basis of Datetime value I can use the function in the
SELECT DATEPART(hh,DateAdd)
and group by DATEPART(hh,DateAdd)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.