How to add a 0 in a column for the number

Hai All

I have my table, I had three columns

Respondent, declared as date

Outime date and Working_time are declared under the number


So while subtracting respondent and outtime I got a result in three digits


For example

outtime is 1715 and intimate is 0815, then working_time is 0900 I need result like this, but I had 900


Even if I added lpad inside... My update statement is


Update dail_att set wtime = lpad ((to_number (to_char(outtime,'hh24mi')-to_char(intime,'hh24mi'))), 4, 0);

Concerning

srikkanth. M

Or simply use

SELECT TO_CHAR (  TO_DATE ('00:00:00', 'HH24:MI:SS')
                + (TO_DATE (:outtime, 'hh24mi')
                - TO_DATE (:intime, 'hh24mi')),
                'HH24SS'
               ) hm
  FROM DUAL;

HM
------
0900

* 009 *.

Tags: Database

Similar Questions

  • Partition on a column for the number interval

    Hi team, 11 2 GR.,

    We have to partition an existing table in size 20g, but the partition key column is NUMBER type and the data stored in the date format unix.

    I would like to create a monthly as partition table below. But not able to create. The reflections and suggestions pls?

    create the table () students

    ENTRY_ID number (5.1).

    NAME varchar2 (30 BYTE)

    )

    partition by range (fun_unix_to_date (ENTRY_ID))-> fun_unix_to_date is a custom function to convert unix timestamp to date format.

    INTERVAL (100)

    (PARTITION CATCH_ALL values LESS (to_date('01-MAR-12','DD-MON-YY')));

    ERROR on line 5:

    ORA-00907: lack of right parenthesis

    Thank you

    Thanks for the link Stefan. Really useful for me.

  • How to add a photo to a page for the creation of an ad

    I'm creating a supplement to a magazine. I am trying ad a picture to the page with text and other elements in the wok with. can someone help me through the process, or show me a link to a video on how to do this. ?. Overtime, what I do the way, Member of the Adobe PS team gave me the photo was big and could not be resized.

    Thank you

    Bill

    OK I found where I need up to the age of the show controls check box to turn checked and once I did that I could resize the image. It works now

  • How can I add "Shut down" as an option for the action of the Power button if it is not available

    How can I add "Shut down" as an option for the action of the Power button if it is not available.

    Hello

    Welcome to the Microsoft Community and thanks for posting the question. Looks like you want to add shut down as an option for the power button.

    Visit this link and try the steps mentioned:

    There are two ways to change what happens when you press the power button on your computer. You can change what happens when you press the power button on your computer case (or the edge of your laptop) and you can change what happens when you press the close button in the start menu.

    Change what happens when you press the power button on your computer

    http://Windows.Microsoft.com/en-us/Windows7/change-what-happens-when-you-press-the-power-button-on-your-computer

    Hope this information helps. If you have questions to answer us and we will be happy to help you.

  • How to add a pop-up window to set the date and time in a field

    How to add a pop-up window to set the date and time in a field? I know how to add the date. I create the field time with JavaScript event initialize like this:

    this.rawValue = num2date(date(), DateFmt(4));
    

    What I should change the script and the motive to do it properly.

    I changed the Format of data (object > link tab) date time but nothing happen. I want to set up a pop-up window as for the setting of date but with addition of time setting.

    Is this possible? Or that the date fixed like that? Should I get hour hand?

    Hello

    I don't think you will get both in the calendar popup. Basically, the popup calendar is the default behavior. It may be possible to develop a custom component, but it would take a bit of scripting and would probably not be worth the effort.

    I'd get the user to time manually entry in a separate field.

    Good luck

    Niall

  • How can I change my fill of tru for the pdf file and the sign? It will never change.

    How can I change my fill of tru for the pdf file and the sign? It will never change.

    In Adobe fill & sign you can add text, checkmarks, an X, a point and a circle and sign documents.  It does not "change" the existing content of the document.  Here is a tutorial: Tutorial: Introduction to Adobe fill & sign

    Thank you

    Josh

  • How can I change my att iphone 4S for the sprint network

    How can I change my att iphone 4S for the sprint network

    You can not.  AT & T phone is a GSM, CDMA Sprint.

    Sorry

  • How and where can I buy a CD for the installation of 3.6.6?

    I have dial-up Internet. After downloading 3.6.6 I can't open because of "file is corrupt". How and where can I buy a CD for the installation of 3.6.6?

    Operating system

    Microsoft Windows XP

    You can not. This problem may be caused by anti-virus software. Try to disable it while you install Firefox. Don't forget to reactivate!

  • How can I get a driver 64 bits for the mouse?

    I installed W7 to xp pro. W7 is a 64-bit operating system, xp is a 32-bit. My mouse (Logitech USB PS/2 optical mouse does not work.) When I check the drivers, they are 32-bit and when I install new drivers, they are also 32-bit. How can I get a driver 64 bits for the mouse?

    Original title: mouse drivers

    The game, August 28, 2014 16:18:16 + 0000, WILLROSS wrote:

    I installed W7 to xp pro. W7 is a 64-bit operating system, xp is a 32-bit. My mouse (Logitech USB PS/2 optical mouse does not work.) When I check the drivers, they are 32-bit and when I install new drivers, they are also 32-bit. How can I get a driver 64 bits for the mouse?

    I don't know if there is a driver 64-bit Windows 7 to your
    mouse. It's Logitech to decide or not to produce a.
    Check on their website to see if it exists. If not, you
    are out of luck, but fortunately that a new mouse shouldn't be very
    Dear.

  • How to check what Qt application is run for the first time?

    How to check what Qt application is run for the first time? I need for the creation of trial version of my application. Any help is greatly appreciated

    Probably use file data and put an I_ran_at_least_one_time file and verify its existence. This file is not accessible to the user and is not changed even if you upgrade the application.

  • How to setting assisted by Hardvare activate virtualiziation for the computer?

    How to setting assisted by Hardvare activate virtualiziation for the computer?

    Original title: the Hardvare-assisted virtualization

    Activation of hardware assisted virtualization is in the BIOS of your motherboard. How depends on the BIOS and the hardware you have.

    See http://blogs.technet.com/b/jhoward/archive/2008/01/08/how-to-turn-on-hardware-assisted-virtualization.aspx .

    If your system is a laptop or made by a major system provider such as Dell or HP, the system may not have the option in the BIOS, even if the hardware is able to use hardware assisted virtualization.

  • I installed ux 16 driver Windows 7 my pc but nothing displays, no .so tracks what is wrong with it please suggest.or how can I do this by using midi for the first time.

    I installed driver ux 16 in my widows 7 and connected to my pc but nothing displays, no .so tracks what is wrong with it please suggest.or how can I do this by using midi for the first time.

    In the subject line, type a brief description of your problem or your question. A subject line that says only "Hi alll" not will receive the attention of someone who can be familiar with your particular situation.

    Contact the support of Yamaha.

  • How to insert a block of digital signatures for the form fillable

    Just upgraded to Adobe Acrobat DC. How to insert a block of digital signatures for the form to fill out?

    Tools > prepare the form

    Insert a signature field

  • How to make a stationary State (or equivalent) for the form to change color and reveal some hidden above text...? is there a widget I could use?

    How to make a stationary State (or equivalent) for the form to change color and reveal some hidden above text...? is there a widget I could use?

    There are many solutions. A more simple: put the text and the items colored in the back and put the 'shape' on it. Configuration of the 'shape' become transparent in a stationary state.

  • How do I update my Adobe Acrobat Pro for the most recent version?

    How do I update my Adobe Acrobat Pro for the most recent version?

    You can try:

    Direct updates
    -----------------

    https://www.Adobe.com/downloads/updates/

Maybe you are looking for

  • auto diagnostic screen is not started

    I have a KDF-55WF655 and the tv could not be started. Red powerstandby indicator will Flash 6 times indicating low error B. I have replaced the G1 Board and still get no response from the television. Can you please help? The self-test screen is not e

  • Satellite A30 - what HARD drive I can use?

    HelloI received an A30-921. The last owner took out the hard drive. Can I mount any HDD 2.5 "to it?Thank you very muchmcdodd

  • Sending of LabVIEW 8-bit unsigned integers

    Hello I send a bytestream of the pixel values in LabVIEW to a C program through TCP connection. I was wondering if this code really sends uint8 data or not, because when I read the data with a console in C application, 3/4 values are zero, as shown i

  • is it true that if my hotmail account is inactive for a month or more, it is cancelled/eliminated?

    is it true that if my hotmail account is inactive for a month or two, it gets cancelled/eliminated? If so how can I get it back, because I relied on it for my accounts on facebook, myspace and photobucket and really need to know whats going on. of co

  • USB device not recognized error

    I am running Windows 7 on an acer 4810 tMy computer keeps telling me that I have an unknown USB device.In Device Manager, the device will appear and then disappear every few seconds.The only USB device I have ever used with this PC is an external mou