Solved

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

Posted on 2012-04-12
2
648 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

805 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