troubleshooting Question

Combine 2 numbers into minutes & seconds in sql view

Avatar of Lawrence Salvucci
Lawrence SalvucciFlag for United States of America asked on
Microsoft SQL Server 2008Microsoft SQL Server
3 Comments1 Solution106 ViewsLast Modified:
I have two numbers in separate columns in my sql view. One is just the number of minutes and the other is the number of seconds. How can I combine these into one value that shows mm:ss? I tried just doing [Mins] + ':' + [Seconds] but if the seconds are 0 then it looks like this: 2:0. I need it to look like this: 2:00. How can I do this?
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros