I execute the following command in SQL Server 2008 and it does not give me the desired results.
RTRIM(avg(ProcTime)/3600) + ':' + RIGHT(('0'+RTRIM(avg(MTD_ProcTime) % 3600) / 60),2)
Let's say I get 2:5 instead of 2:05, it drops the zero. How do I get that zero in front of the 5 ?