Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7569765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:14:54+00:00 2026-05-30T15:14:54+00:00

I have a table and I want to update the Duration column which of

  • 0

I have a table and I want to update the Duration column which of datatype Decimal to HH:MM format.

ECode        Duration
101           101.75
101           69.56
102           54.60
103           54.97

The output should be like this:

ECode        Duration
101           102.15
101           69.56
102           55
103           55.37

We are calculating the time after the decimal and if after decimal 60 or more then 60 will be there we are adding 1 before decimal and remaining after subtraction from 60 we are showing as it is.

Example 101.75, here after decimal 75 is there so firstly we check it is greater than or equal to 60. If yes then subtract 60 and add 1 before decimal and put the remaining 15 after decimal. So the result should be 102.15.

Please share query if possible to solve this issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:14:55+00:00Added an answer on May 30, 2026 at 3:14 pm

    I guess you would do something like (“pseudo” code of some sort):

    String reorder(String x) {
      String parts[] = x.split(.);
      if(parts.length < 2) x;
      // eval as integers:
      if(parts[1] < 60) return x;
      if(parts[1] > 60) return (parts[0]+(parts[1]/60))+"."+(parts[1]%60);
      return parts[0]+1;
    }
    

    But exactly how you do it depends whether you’re doing in a script, some application and the language you’re using…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table which I want to update using a simple update command.
Hi I have a table that have timestamp column. I want to update a
I have a Table View Controller with cells. I want to update the text
I have a database table that i want to allow my friends to update.
I want to have an 'updateinfo' table in order to record every update/insert/delete operations
I have a variable say, column_name. I want to update a column whose name
I have table with data 1/1 to 1/20 in one column. I want the
I have a table with multiple columns and I want to update only one
I have following table alt text http://img683.imageshack.us/img683/930/town.png I want to update its TownId from
I have a table where I want to update all rows with the ID

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.