How to convert minutes to hours and minutes?

Hi Sir,

I want to convert minutes is 90 you want to convert hours and minutes this format should be

01:30 format.

I can't in this format?

Thank you

Or like this...

SQL> select to_char(trunc(sysdate)+90/(24*60),'HH24:MI') from dual;

TO_CH
-----
01:30

Tags: Database

Similar Questions

  • How to convert an Indesign document and convert a continuous flow word document

    How to convert an Indesign document and convert a continuous flow word document?

    Thank you so much worked perfectly.

  • How to convert a text file and give the table

    Hai

    How to convert a text file and give the data of the table

    ISN'T THERE!

    You must put this

    SET_BLOCK_PROPERTY ('TEST_MS', insert_allowed, property_false);
    SET_BLOCK_PROPERTY ('TEST_MS', update_allowed, property_false);

    just before the last exception...

    Published by: Dora on January 19, 2010 14:54

  • Convert seconds to hours and minutes

    Hello

    I have a column that stores the elapsed time in seconds. I would like to convert to hours and minutes.

    FOR EXAMPLE

    126 seconds = 2:06. I can't find anything with a search.

    Thanks in advance.

    Hello
    Try this code.
    Salim cordially.

    SELECT TO_CHAR (TRUNC (SYSDATE) + NUMTODSINTERVAL (126, 'second'),
                    'hh24:mi:ss'
                   ) hr
      FROM DUAL;
    
    HR
    --------
    00:02:06
    
    1 row selected.
    
  • How to convert photos in black and white colors?

    I'm new to illustrator and I am trying to convert an EPS file and in black and white. In fact, I'm creating a coloring book for children. Your comments are very much appreciated...

    jygz,

    You can select the entire document and fill set to None and the race to the black, both at the bottom of the Toolbox.

  • Convert number in hours and minutes

    Hello

    I have a SQL statement that is used as a source of my report.

    One of the columns is the result of the return of a function calc_working_hours and labeled as working_hours. As seen available_time column (which is a numeric field) is converted to hours: minurtes and called by using avail_time

    To_char (FLOOR (available_time / 60)). ':' ||
    To_char (MOD (available_time, 60), "FM00") avail_time


    I need a similar display during the return of the result of the Working_Hours calc_working_hours(carer.operator_id,'CAHTL19',s.start_time). However, this function returns a varchar type as shown below (displayed as 444:00 and I need to show 07:24)

    Select
    Carer.operator_id,
    calc_working_hours (Carer.operator_id, 'CAHTL19', s.start_time) Working_Hours,
    available_time,
    To_char (FLOOR (available_time / 60)). ':' ||
    To_char (MOD (available_time, 60), "FM00") avail_time
    of s rhm_op_available_slots, rhm_operators care, rhm_operators sw, rhm_operators tl
    where s.operator_id = carer.operator_id
    and carer.bm_id = sw.operator_id
    and sw.bm_id = tl.operator_id
    and carer.operator_id = '12693'


    OPERATOR_ID | WORKING_HOURS | AVAILABLE_TIME | avail_time
    12693. 444:00 | 444. 07:24
    12693. 444:00 | 444. 07:24
    12693. 444:00 | 444. 07:24
    12693. 444:00 | 444. 07:24
    12693. 444:00 | 444. 07:24
    12693. 444:00 | 444. 07:24


    I use 11g and any help would be appreciated gratefully.

    Kind regards.

    OK, try this...

    select
    carer.operator_id,TO_CHAR ( FLOOR ((TO_NUMBER(SUBSTR(:calc_working_hours(carer.operator_id,'CAHTL19',s.start_time),1,INSTR(:calc_working_hours(carer.operator_id,'CAHTL19',s.start_time),':' ,1,1)-1))+
     TO_NUMBER(SUBSTR(:calc_working_hours(carer.operator_id,'CAHTL19',s.start_time),INSTR(:calc_working_hours(carer.operator_id,'CAHTL19',s.start_time),':' ,1,1)+1,(LENGTH(:calc_working_hours(carer.operator_id,'CAHTL19',s.start_time))+1)- (INSTR(:calc_working_hours(carer.operator_id,'CAHTL19',s.start_time),':' ,1,1)+1))/60))/ 60)) || ':' ||
     TO_CHAR ( MOD ((TO_NUMBER(SUBSTR(:calc_working_hours(carer.operator_id,'CAHTL19',s.start_time),1,INSTR(:calc_working_hours(carer.operator_id,'CAHTL19',s.start_time),':' ,1,1)-1))+
     to_number(SUBSTR(:calc_working_hours(carer.operator_id,'CAHTL19',s.start_time),INSTR(:calc_working_hours(carer.operator_id,'CAHTL19',s.start_time),':' ,1,1)+1,(LENGTH(:calc_working_hours(carer.operator_id,'CAHTL19',s.start_time))+1)- (INSTR(:calc_working_hours(carer.operator_id,'CAHTL19',s.start_time),':' ,1,1)+1))/60)), 60), 'FM00') Working_Hours,
    available_time,
    TO_CHAR ( FLOOR (available_time / 60)) || ':' ||
    TO_CHAR ( MOD (available_time, 60), 'FM00') avail_time
    from rhm_op_available_slots s, rhm_operators carer, rhm_operators sw, rhm_operators tl
    where s.operator_id = carer.operator_id
    and carer.bm_id = sw.operator_id
    and sw.bm_id = tl.operator_id
    AND CARER.OPERATOR_ID = '12693'
    

    I hope this works...

    If someone useful or appropriate, please mark accordingly.

  • Convert within 24 hours and computer Performance

    Dear all,

    Question 1
    I have a date/time field that contains values like this:

    CURRENT_DATE
    24-11-08 08:11
    24-11-08 01:01
    25/11/08 03:21
    25/11/08 02:21

    I want it to appear, just the date and time of 24 hours 00 minutes as:

    example of output
    24/11/08-08:00
    24-11-08 01:00
    25/11/08 03:00
    25/11/08 02:00

    How can I do this?

    Question 2
    Lets say I have a table with more than 1 million records. These million records they are divided into four categories as shown in the type of error, however, there are several categories listed in characters: like this:

    Type of Fault_Type
    Hard engine
    Soft body work
    No_Fault puncture
    Hard exhaust
    Flexible wing
    Nut No_Fault loose on wiper devices

    Would it not more efficient to perform:

    Select * from tblFault where Type = 'Engine '.

    OR

    Select * from tblFault where Type = 'Engine' and Fault_Type = 'Hard '.

    If I wanted to find all the flaws of the engine, nor are the key primary btw?

    If you want only the hour format, you can try with that.
    Along with time, if you need: 00 also, you can join by using pipe like a simple solution, if you do not want to compare the dates with all the other dates, rather than just to select the data along with the date field.

    -On time with date
    SELECT
    TO_CHAR (SYSDATE, ' DD/MM/YY HH24') FROM dual

    -Time with zero padded
    SELECT
    TO_CHAR (SYSDATE, ' DD/MM/YY HH24') |': ' |' 00' double

  • How to convert number in date and time in labview

    Hi all

    I have a hexadecimal string and converted into a number. Now this number to display in the format of timestamp. Uses the format of the time Unix.

    By using this link, I can convert this number to timestamp.  http://www.UnixTimeStamp.com/index.php

    But how it should be done in LabVIEW? I know it may be simple, but please help.

    I enclose my VI for referance.

    Thank you

    Manisha

    Hi Man_Can,

    You can add the origin of UNIX timestamp to your number:

  • How to convert varchar2 to raw and vice versa?

    Hi all

    11.2.0.1

    Have the EMP table with columns

    (PASSWORD varchar2 (64), PWD raw (64));

    I want the PWD value to be updated with the value of the PASSWORD.

    and vice versa. How do it?

    Thank you

    pK

    Please try the below:

    SQL > create table testtable (identification number, name varchar2 (512));

    Table created.

    SQL > insert into testtable values (1, 'storm');

    1 line of creation.

    SQL > commit;

    Validation complete.

    SQL > alter table testtable add raw nameraw (512);

    Modified table.

    SQL > update nameraw = utl_raw.cast_to_raw (name) set testtable;

    1 line update.

    SQL > commit;

    Validation complete.

    SQL > alter table testtable column name drop;

    Modified table.

  • How to convert PDF, MS Word and Outlook 2007 E-mail documents?

    I have a lot of Word documents that need to be converted to PDF.

    Using MS Word, MS Outlook 2007, Windows 8, Google - Reader.

    I also very much MS Outlook e-mail messages that should be converted to PDF formatted documents.

    Please notify.

    Buy and install Acrobat (currently available version is XI).

    You can use Acrobat to create PDFs of electronic messages, MS Word files or any file format which has a native application that takes care of a "file - print".

    (With "file - print" you must select the Adobe PDF virtual printer.)

    Be well...

  • How to convert color to black and white Page?

    I regularly receive scanned documents that are sent in color. I prefer much bitonales images, because they are smaller and easier on the eyes. Is it possible to convert these in Acrobat X? I don't see one, and research has not helped.

    Ahh, okay!

    Using of "convert monochrome colors" as a search I found the answer on the intrawebs.

    http://blogs.Adobe.com/acrolaw/2009/10/converting-color-PDF-to-greyscale-PDF-an-update/

    You * can * convert to monochrome, but the result was less that optimal, so I stuck with grayscale.  The preflight toolset, did the trick.

    Thank you!

    Out of a total aside, I wonder if this forum uses Wordpress. Looks like a very similar interface and dialog boxes.

  • How to convert wma and wav, mp4 files and what not not mp3 with Windows media player?

    * Original title: music questions

    Music has become a huge problem for me.   My car CD player only supports mp3 format.  I wish I could burn my CD from which I get used various locations, so that I can play in my car. Or convert files I have, which are not in mp3 format.  I played the same CD in my car for years.  It's a little sad.  And convert mp3 no mp3 files, so I can play them in my car, because I don't have a player other than Windows media player and speakers belong good markets.   How to convert files to wma and wav and mp4 and what not in mp3?

    Music is expensive nowadays and the multiple formats and thus loss of music bought and in the cloud, or itunes 'cannot locate the source' will not play, and when devices in the event of a failure or who are upgraded drives me crazy.  I have more music in my life and I wish that we would go back to portable music as CD.

    I usually use Windows Media player to RIP CD, that I find at thrift stores.   I have my brother gave me, on the PC that is in all sorts of types of music files.  I found a job online converter and it is, according to me, so thank you guys for suggesting that.  Have tried 3 different ones and finally found one that works in the last one.  I think my brain might need a bit of adjustment, of our days, (won't tell you music I have on CD, would seriously date), no kidding, but probably my PC could also use the setting.   I also have itunes for Windows, but have hardly used it.

  • I have vista how can I convert files to PDF and save them to my desktop

    Hello

    Can someone tell me how to convert files to PDF and save them as PDF files on the desktop computer to send email

    There are many ways. If you use a MS Office product, they have options to save in pdf format, if using Adobe Acrobat Reader, you can subscribe to services export to PDF and use Adobe Acrobat (the full version) is made to create pdf files, you can then use that. There are other options, but it's a start.

  • Convert hexadecimal into decimal and keep the zeros on the left...

    Hello

    I hope you can help us?

    How to convert hex to Decimal and keep the zeros

    I read 002C, hex, and I want to convert it to decimal-0044.

    sscanf (MyNum, % '4 x', & DecNum); will only give me 44.

    It worked until I started having zeros.

    We will always have a 4 digit hexadecimal entry in a range

    We have the 00 leader in this case.

    How is this best?

    Thanks for the help

    Simon

    Hello

    I don't really understand your problem. Is this kind of things that you need?

    int main (int argc, char *argv[])
    {
        const char MyNum[] = "002C";
        int DecNum;
    
        sscanf (MyNum, "%4x", &DecNum);
        printf ("%04d", DecNum);
        getchar ();
    
        return 0;
    }
    

    '0044' appears on standard output when executing the printf function...

  • How to convert a timestamp in tank

    Hai all

    How to convert a timestamp to varchar

    I had a query called Cube_instance

    Here, the creation date is declared as timestamp. This is my request

    Select count (1) in the cube_instance where ID_processus like 'PreAdviceHandler %' and
    CREATION_DATE between July 30, 10 00.00.00.000000' and
    31 JULY 10 00.00.00.000000';

    My result is when I run this query, I need the count starts from 30 declaring Jul and 30 jul ending when I run the present 31 Jul


    How to convert this varchar timestamp and give the condition


    Kind regards

    Srikkanth.M

    Published by: Srikkanth.M on July 31, 2010 01:53
    select count (1)
    from cube_instance
    where process_id like 'PreAdviceHandler%'
       and creation_date between trunc (sysdate) and trunc (sysdate + 1) - interval '1' second;
    

Maybe you are looking for