Click here to Skip to main content
15,898,134 members

Comments by Member 9848727 (Top 17 by date)

Member 9848727 12-Sep-13 12:45pm View    
SELECT
otd.userid,
otd.task,
otd.date_request,
ot.approved_by
FROM
otd
INNER JOIN
ot ON otd.userid = ot.requested_by
and otd.date_request = ot.date_request
WHERE
otd.userid ='xxx'
AND CONVERT(varchar,otd.date_request,101) BETWEEN '09/10/2013' AND '09/11/2013'
AND ot.status ='A'
ORDER BY otd.date_request,ot.date_request ASC
Member 9848727 6-Sep-13 6:50am View    
I have searched. I just want to achieve through query but not the function thats the reason why i posted .
Member 9848727 6-Sep-13 6:46am View    
Hey,
Thanku its working.
Is there any other way without using function?
Member 9848727 3-Sep-13 9:23am View    
I want a query not an SP or else function
Member 9848727 23-Jul-13 8:25am View    
It is not possible in msSql.. Once the table is created we cant alter the position of the columns in the table