Solved

I need a simple mysql query to convert seconds to minutes and Round it

Posted on 2012-04-12
2
655 Views
Last Modified: 2012-04-12
Greetings,

I need a simple mysql query to convert seconds to minutes and remaining seconds rounded to next minute.

eg 61 seconds = 2 minutes
    125 seconds =3 minutes

Regards,
0
Comment
Question by:Sam2009
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
BlueYonder earned 500 total points
ID: 37837957
SELECT CEILING(seconds/60) as SEC
FROM TABLE
0
 

Author Closing Comment

by:Sam2009
ID: 37839989
Excellent
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question