How to convert the Minutes (digital format) to hh: mm in SQL

I have a column of data (Duration_Min_Amount) that displays the number of minutes used. I need to convert it to the format hh: mm and can't seem to figure out how.

I need the data to show 930 = 15:30.

Someone knows how to do this? I searched google and tried using CAST but cannot get the syntax works.

((A.DURATION_MIN_AM) / 60) |': ' | TO_CHAR (mod (SUM (A.DURATION_MIN_AM), 60), 'FM00') AS DURATION_MIN_AM,

First display, sum the latter.

or

RTrim)

LTrim)

RTrim)

NUMTODSINTERVAL (SUM (A.DURATION_MIN_AM), "OTHER")

,'+0: ')

,'+0: ')

,'.') AS DURATION_MIN_AM_I,

Tags: Database

Similar Questions

  • How to convert .mix files usable format (.jpg)

    How to convert files *.mix usable format (*.jpg) My *.mix files that were created by MS Picture it! and MS Digital Image Pro. Help, please!

    How to convert files *.mix usable format (*.jpg)  Went to Windows 7 & XP new computerfrom due to a failure of the computer.  Fotrunately my pictures have been saved, but the window in course (or other) photo products can not access my files *.mix created by MS Picture! and MS Digital Image Pro.  Help, please!

    Hi Genecec,

    There is no converter of Microsoft or the viewer that will help you to see old photos of your. Although you can use some third party software to convert the .mix .jpg files.

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    You can follow the link given below and check if the given suggestion is useful.

    http://social.answers.Microsoft.com/forums/en-us/wlmedia/thread/12e62153-35b2-40F0-8da4-ae6450e085b0

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to convert the precision extended float to float in C++

    Hello

    Could someone me please how to convert the extended precision (floatExt) float normal float in C++?

    What is the difference in the float between Labview and C++ data type?

    When I tried to receive a range of float of a function of the DLL generated by Labview in C++, data are bad.

    Thank you

    Victor King

    You can search for numeric data types in LabVIEW help for more information on the different types of data. Before sending the data to the C++ application, you can use the function of Double precision on digital / range of Conversion to convert number to Double precision.

  • How to convert the date in milliseconds?

    Hi all

    Can I know how to convert the date in milliseconds?

    My current datetime like this Formate

    QDateTime::currentDateTime (m:System.NET.SocketAddress.ToString ("MMMM dd, yyyy HH"))

    Seconds since January 1, 1970

    http://Qt-project.org/doc/Qt-4.8/QDateTime.html#toTime_t

    Sinds milliseconds January 1, 1970

    http://Qt-project.org/doc/Qt-4.8/QDateTime.html#toMSecsSinceEpoch

  • Please how to convert the photo to the second

    2012-Kia-Rio-SX-side1.jpg11707850_10153403835594354_514303523436587694_n-1.jpg

    Please guys how to convert the kia rio pictures the second perfect like this, and with any program, I know that all steps in details please its very important

    That looks just like you would use the tool pen to redraw on the image and create shape layers (black areas). It could be done in Photoshop or Illustrator.

    Using Photoshop | Draw with the pen tools

  • Hello, I have a full desktop in Adobe Muse, site and I want to convert it into a version Tablet & phone, then, how would convert the site Office to Tablet & phone to copy the entire office content and site structure? Thanks for any help.

    Hello, I have a full desktop in Adobe Muse, site and I want to convert it into a version Tablet & phone, then, how would convert the site Office to Tablet & phone to copy the entire office content and site structure? Thanks for any help.

    You can not automatically convert. Click on the "tablet" or "Phone" at the top of your plan view to create these versions.

    You can then copy and paste on any content you want has more of your office.

  • How to convert the following code in as3?

    As the title says... How to convert the following code to as3?... Thanks in advance.

    import flash.display.BitmapData;

    linkageId = "landscape";
    myBitmapData = BitmapData.loadBitmap (linkageId);


    MC = this.createEmptyMovieClip ("mc", 1);
    mc.attachBitmap (myBitmapData, 1);

    onMouseMove = function() {}
    myNewColor = "0 x" + myBitmapData.getPixel(_xmouse,_ymouse).toString (16);
    newColor.setRGB (myNewColor);
    selectedColor.colorValue.text = myNewColor;
    }
    selectedColor.swapDepths (_root.getNextHighestDepth ());
    newColor = new Color (selectedColor.sample);

    :

    var myBitmapData:landscape = new landscape (0,0);

    var bmp:Bitmap = new Bitmap (myBitmapData);
    addChild (bmp);

    stage.addEventListener (MouseEvent.MOUSE_MOVE, f);

    function f(e:MouseEvent):void {}
    var myNewColor:String = "0 x" + myBitmapData.getPixel(mouseX,mouseY).toString (16);
    newColorTransform.color = uint (myNewColor);
    selectedColor.sample.transform.colorTransform = newColorTransform;
    selectedColor.colorValue.text = myNewColor;
    }
    addChild (selectedColor);
    var newColorTransform:ColorTransform = selectedColor.sample.transform.colorTransform;

  • How to convert the hierarchical query of SQL Server (CTE) to Oracle?

    How to convert the hierarchical query of SQL Server (CTE) to Oracle?

    WITH cte (col1, col2) AS
    (
    SELECT col1, col2
    FROM dbo. [tb1]
    WHERE col1 = 12
    UNION ALL
    SELECT c.col1, c.col2
    FROM dbo. [tb1] AS c INNER JOIN cte AS p ON c.col2 = p.col1
    )
    DELETE one
    FROM dbo. [tb1] AS an INNER JOIN b cte
    ON a.col1 = b.col1

    Hello
    Something like this maybe:

    DELETE FROM dbo.tb1 a
     WHERE EXISTS (
      SELECT 1
        FROM dbo.tb1 b
      WHERE a.co11 = b.col1
          AND a.col2 = b.col2
       START WITH b.col1 = 12
      CONNECT BY b.col2 = PRIOR b.col1)
    

    Although you need to do here is to check that CONNECT it BY SELECT, returns records you wait first, then the DELETION should work too.

  • How to convert the entries in the zip code format valid UK

    I want to take an entry of users and convert it to a format of postal code valid UK. Specifically, I want to add a space to the topic, if they are not entered in it.

    then "G13NU" is converted to "G1 3NU.

    Valid postal code formats are

    A0 0AA eg G1 3NU
    A00 0AA
    A0A 0AA
    AA0 0AA
    AA00 0AA
    AA0A 0AA

    Has anyone done similar before, or have any advice?

    Hello

    What exactly are the rules for where we need to go?

    Will there always be exactly 1 space, and it will always immediately before the last digit?
    If so:

    REGEXP_REPLACE ( REPLACE (postal_code, ' ')
                , '([0-9][^0-9]+$)'
                , ' \1'
                )
    

    REPLACE (in the first argukment to REGEXP_REPLACE) is required only if the original zip_code can contain spaces.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.
    Highlight a few places where the expression above does not do what you need and explain how you get the correct results of the data in these places.
    Always tell what version of Oracle you are using.

  • How to convert photos in jpeg format?

    What happens if I want to convert to jpeg? When you transfer the pictures from my Nikon to the ipad, it converts automatically in jpeg format. I would like to convert to JPEG so that I can download other apps/web apps for sharing.

    Separated from -.

    https://answers.Microsoft.com/thread/60bba06b-6e35-4eb0-9547-b217bd02b4bb

    There are several ways to do it, but here I'll show you how do it without having to download other Windows programs.

    1. Right click on image, choose open with and select Paint from the list.
    2. In the painting, choose file > save as to save a new copy.
    3. Before you save it, choose "JPEG" from the "file type" drop-down box.

    That's all, now you have a JPEG version of your image.

  • How to convert number in currency format?

    Hi all

    How to use the transformation of BPEL or entitlement,
    I want to convert the number format to currency foramt. (ex, 2000.00-> 2,000.00)

    How to do this?

    Concerning
    Toven.

    Hi Toven,

    More XSL allows you to convert (123456789.80-> 123,456,789.80)




    Output: 123,456,789.00

    Kind regards
    KanmaniRajan

  • How to convert the request function

    Please help convert the below given query to a function:
    SELECT
      ITEM_CODE, ITEM_NAME, 
      ROUND(OPSTK/CNV/ML,2) OPSTK, ROUND(OPVAL,3)OPVAL,
      ROUND(INQTY/CNV/ML,2) INQTY, ROUND(INVAL,3) INVAL,
      ROUND(OUTQTY/CNV/ML,2) OUTQTY,ROUND(OUTVAL,3)OUTVAL, 
      ROUND((NVL(OPSTK,0)+NVL(INQTY,0)-NVL(OUTQTY,0))/CNV/ML,2) CLSTK,
      ROUND((NVL(OPVAL,0)+NVL(INVAL,0)-NVL(OUTVAL,0)),3) CL_VAL
    FROM
    (
      SELECT ITEM_CODE, ITEM_NAME, IU_CONV_FACTOR CNV, IU_MAX_LOOSE_1 ML
      FROM   ITEM,ITEM_UOM 
      WHERE  ITEM_CODE = IU_ITEM_CODE AND IU_UOM_CODE = ITEM_UOM_CODE 
    ),
    (
      SELECT SL_ITEM_CODE OP_ICODE,
             SUM(DECODE(RCVD_ISSD,'R',1,'I',-1)*QTY_BU) OPSTK,
             ROUND(SUM(DECODE(RCVD_ISSD,'R',1,'I',-1)*VAL_1),2) OPVAL
      FROM   STK
      WHERE  DT <  TO_DATE(:P249_DATE1,'DD-MM-YYYY')
      GROUP BY SL_ITEM_CODE  
    ),
    (
      SELECT SL_ITEM_CODE TX_ICODE,
             SUM(DECODE(RCVD_ISSD,'R',1)*QTY_BU)INQTY,
             SUM(DECODE(RCVD_ISSD,'R',1)*VAL_1) INVAL,
             SUM(DECODE(RCVD_ISSD,'I',1)*QTY_BU)OUTQTY,
             SUM(DECODE(RCVD_ISSD,'I',1)*VAL_1) OUTVAL
      FROM   STK
      WHERE  DT BETWEEN TO_DATE(:P_DATE1,'DD-MM-YYYY') 
      AND    TO_DATE(:P249_DATE2,'DD-MM-YYYY')
      GROUP BY SL_ITEM_CODE
    )
    WHERE ITEM_CODE = OP_ICODE(+)
    AND   ITEM_CODE = TX_ICODE(+)
    --AND   ITEM_CODE LIKE :P_ITEMCODE
    ORDER BY ITEM_CODE
    Yogesh

    A function in what version of Oracle that renders what?

    Your query selects 7 different values... functions return 1. (do the math).

    What you try to do is highly suspicious, given that the functions are generally not used for these purposes. You push away from the keyboard for a
    a few minutes and then tell us why a function, how it will be used, and when, in the past, you saw a 7 function return values.

  • How to convert the old sync key (12 characters, no dashes) to the new sync key (31 characters, 5 dashes)?

    My sync key was of 12 characters, no dashes (xxxxxxxxxxxx). After uninstalling and reinstalling FF 3.6.13, Sync 1.6.1 refuses my sync key to 12 characters.
    I discovered, that the keys of synchronization for all users have been activated to 31 characters including 5 dashes (x-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx). How can I get the new key for synchronization?
    I have no PC connected to Firefox Sync more but Firefox Home and 360 browser on my iPhone successfully sync. Unfortunately on the iPhone I can't display the sync currently used key. Is there a way to convert the old key to sync to the new?
    I need the bookmarks saved in my sync account.
    Thanks for your help!

    I had the same exact symptoms as you did. Here is my solution:
    I installed an older version of firefox sync (1.4.something, I think) and then added my account using my old short firefox sync key. When you try to synchronize, the out of date addon says to do synchronization, it must be updated. After update, I always signed, but now had the additional device to see my new long firefox sync key that was compatible with FF 4 b, etc. Everything works fine now and my computer is properly synchronize.

  • How to convert the substring to waveform

    Hello

    I have an input file with a lot of numbers that need to be converted to a waveform. I used the match model vi to extract the data I need to be traced out. These data can be seen in 'before the substring"but I do not know how to convert these data to waveform. Can anyone help? I have attached the input file and the vi as well. Thank you

    Try using the worksheet File.vi reading. It converts a text file delimited by tab characters in a table of numbers in one step.

    Lynn

  • How to convert the binary value to a binary string in labview?

    Hi all

    I need to convert the binary value to a binary string. We have decimal or hexadecimal or octal number to decimal string, hexadecimal and octal string

    Hi pgm, use the function 'Format to a string. See the attached example. "%b" is the binary number in number in string format specifier.

Maybe you are looking for