Hi friends,
I have a coloumn in my table which contains time in format hh:mm:ss and now i want to add that whole coloumn time and display that ....i hav
written some query as follows for that
select convert(char(8),dateadd(second,SUM ( DATEPART(HH,(convert(datetime,working_hours,1))) * 3600 +
DATEPART(mi, (convert(datetime,working_hours,1))) * 60 + DATEPART(ss,(convert(datetime,working_hours,1)))),0),108) as t
FROM logindetails where date between @fromdate and @todate and user_id=@user_id and logout_time is not null
this is not adding if data has like 20:00:00..so plz help me out..