How subract tank with number

Hi Experts

Here is my requirement


Select sysdate-1 double - Goes to date previous Formate sysdate is DD-MON-RRRR

IAM change this format DD-MM-RRRR

Select to_char (sysdate, 'DD-MM-RRRR') From Dual - here now, how can I go to my previous date with that?

I try this
Select to_char (' sysdate, ' DD-MM-RRRR "),-1 From Dual - here I am subtracting Char with no that is not possible, how can I achieve this?

Concerning
Dela

subtract then convert:

select to_char(sysdate-1,'mm-dd-yyyy')
from dual;

TO_CHAR(SY
__________
05-23-2013

?

NB "rr" only makes sense for 2-digit years.

Tags: Database

Similar Questions

  • How to find the number of data items in a file written with the ArryToFile function?

    I wrote a table of number in 2 groups of columns in a file using LabWindows/CVI ArrayToFile... Now, if I want to read the file with the FileToArray function so how do I know the number of items in the file. during the time of writing, I know how many elements array to write. But assume that I want the file to be read at a later time, then how to find the number of items in the file, so that I can read the exact number and present it. Thank you all

    Hello

    I start with the second question:

    bytes_read = ReadLine (file_handle, line_buffer, maximum_bytes);

    the second argument is the buffer to store the characters read, so it's an array of characters; It must be large enough to hold maximum_bytes the value NULL, if char [maximum_butes + 1]

    So, obviously the number of lines in your text tiles can be determined in a loop:

    Open the file

    lines = 0;

    While (ReadLine () > 0)

    {

    lines ++;

    }

    Close the file

  • I have a thinkstation with win7pro an OEM installed how to get serial number

    I have a thinkstation with win7pro an OEM installed how to get serial number

    If it's a win7 machine, there should be a sticker.  It is called the product key and is 25 alphanumeric characters in 5 sets of 5.

  • A torn my sticker with the serial number. How to find the number of the whole installation?

    Best regards, tore my sticker with the serial number. I don't see the numbers. How to find the number of the whole installation?

    Original title: windows 7 sn

    Option 1:

    If the COA sticker is damaged, you must use the recovery partition to reinstall Windows 7, it will be exempt from the need to use the product key to activate your installation of Windows 7.

    Option 2:

    If your recovery partition is not available or damaged, you must contact the manufacturer of your computer, and request that a defined recovery disk you can use to reinstall Windows 7. They could practice a small shipping and handling. This will exempt the need to also use the product key.

    Option 3:

    If neither options 1 or 2 is possible, then you will need to invest in a new license of full version of detail.

  • I downloaded and installed the XI and when open wants to buy DC and enter again which gives the serial number and the error.  Does anyone know how to talk with Adobe cat

    I downloaded and installed the XI and when open wants to buy DC and enter again which gives the serial number and the error.  Does anyone know how to talk with Adobe cat

    Hey Kevin,

    It seems that you are getting the update to install Acrobat DC. This is the latest version of Acrobat.

    If you get an error message, could you please share the screenshot of the same so that we can check at our end.

    If you want to contact Adobe support team, see the following link to get in touch with them.

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

    http://helpx.Adobe.com/x-productkb/global/Service1.html

    Concerning

    Sukrit diallo

  • . can howb I find information about a moblile with number?

    . can howb I find information about a moblile with number?

    What number, information and mobile are you referring?

    Please see: http://support.microsoft.com/kb/555375 on how to ask a question effectively. It is in your own interest to do as this increases your chances of having an answer quickly to your question correctly.

  • How to increase the number of entries in MAC

    Hi everyone, I have a WRT 1900AC and I've reached the limit of 32 entries of MAC for filtering options, we have many more users who must be saved from MAC, anyone know how to increase the number of entries please?

    Tanks a lot, im going to read the info in the links, then ill try
    Tanks for help!

  • I got a phone call from a person claiming to be from the care team of the windows service how they got my number

    I got a phone call from a person claiming to be from the care team of the windows service how they got my number and I took his number, I think it's fake

    Hello

    There are telephone directories, etc., etc.

    It's a SCAM

    they want or money on your part for programs without value or make an identity theft on you to get even more money and get your internet banking passwords and credit card information, you get allows you to download the software to 'fix' or 'test' for your computer

    read this:

    http://www.Microsoft.com/security/online-privacy/msName.aspx

    Microsoft has none of the unsolicited telephone calls to help you fix your computer

    In this type of scam cybercriminals are calling you and claim to be of Support technique Microsoft. They offer help with your computer problems. Once scammers have earned your trust, they try to steal and damage your computer with malicious software, including viruses and spyware.

    Although the law enforcement can trace phone numbers, often authors use pay telephones, disposable cell phones or stolen cellular phone numbers. Better avoid fooling themselves rather than try to repair the damage afterwards.

    Treat all unsolicited sceptically telephone calls. Don't provide personal information.

    If you receive an unsolicited call from someone who claims to be from Technical Support Microsoft, hang up. We do not have such calls.

    If you think you might be a victim of fraud, you can report it. For more information, see: what to do if you think you have been scammed.

  • How to deal with operating system windows 8.1 and apps on usb device

    Hi, I have a laptop Lenovo G505. Windows 8 64-bit was preinstalled in it. Later, I upgraded to 8.1. Laptop is almost 9 months and still under warranty. Since a few days, built Lenovo solution Center alert this analysis of hardware detected failures in one or more devices. On suggestion of Lenovo, I ran hdtune pro app in my machine and it also detected 3 hard drive errors. As my machine is under warranty, Lenovo is ready to replace my hard drive with a new one. But they say that it is the responsibility of the customer to return the windows 8.1 operating system and install in the new drive and their liability is limited to the replacement of the hard disk only. I am not computer savvy and I request concerned to guide me how to deal with operating system windows 8.1 on external media like USB, DVD, and install in the new drive. I also installed a number of apps and paid games. Therefore, I would like to resume these games also files so that I need not buy again. Assistance in this regard is required.

    Hello Mohan,

    Thanks for posting your query in Microsoft Community Forum.

    I can of course understand the situation and will be happy to help with your query.

    Let me ask you;

    • You have the key product for Windows 8 or 8.1?

    You can create an installation media (DVD/USB) for Windows 8.1 and re-install when you want. However, in order to create an installation media for Windows 8.1, you need the product key. If you don't have the product key for Windows 8.1, you can not create installation media.

    You can create the installation media for Windows 8 by using the product key Windows 8 If you have. In this case, install you Windows 8 first and then go to Windows 8.1 through store.

    As far as your paid apps (purchased by store) are concerned, you should be able to install them as soon as you sign in with the same Microsoft Account where apps were purchased.

    You can see the steps indicated by Ronnie Vernon replied on 24 December2013, re - install paid apps.

    You can follow the steps below to create installation media.

    1. Run the program Windows 8.1 configuration or installation of Windows 8 (depending on the availability of the product key for the specific operating system.
    2. When you are prompted to run or save the file, choose run

    3. When you are prompted to enter a product key, enter the 25-character product key, that you received when you purchased Windows 8.1 (or Windows 8).

    4. When you are prompted to install Windows 8.1 (or Windows 8), select install by creating media and then click Next.

    5. Select the type of media you want to use: either a Flash DRIVE or a DVD.

    To create a USB flash drive

    1. Click on the USB flash drive.

    2. Plug the USB key into a USB port on your PC.

    3. When you are prompted, select the USB key that you want to use, and then click Next.

      If you have files on the USB flash drive, it will remove them.

    To create a DVD

    1. Click on the ISO file , and then select the location where to save the ISO file.

    2. Insert a blank recordable DVD into your DVD drive.

    3. Burn the ISO of the DVD file using Windows disc Image burner, or another program DVD burning.

    Note: Ensure that the USB or DVD key that you use has nothing else stored on it and has a sufficient free space to download the Windows 8.1 Installer: about 2.3 GB for the 64-bit version.

    You can also read the article below to create a USB stick recovery.

    Create a recovery USB disk

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

    Thank you.

  • I want to trust my pc but my phone number is not in use... How to upgrade my number to receive a code

    Hello... I just had to have my 8 reinstalled windows as was the problem of software... I now have to go 'confidence to my pc', but mobile number which I am connected to the origin is more exists because I have a new number but do not know how to upgrade my number so I can get the code?   otherwise I have to wait a month before this is done?   'M not savvy PC so advice will graciously be recd

    Thx a lot

    Hi Sally,

    Why don't you directly chat with the Microsoft Account support team, they are an expertise on the treatment of issues related to the Microsoft account.

    Microsoft email support
    Microsoft support chat

  • I just opened my Acrobat 9 Pro and received an error message indicating that my license had expired with number (148: 3). What is c?

    I just opened my Acrobat 9 Pro and received an error message indicating that my license had expired with number (148: 3). What is c?

    Restart your flexnet licensing service, http://techie-buzz.com/how-to/fix-adobe-error-code-148-3-licensing-issue.html

  • How can I find number of objects in a layer?

    I have a document with hundreds of layers. I want to delete the specific purpose of layers. I iterate through all the layers, but I couldn't iterate over objects within a single layer to find that specific object.

    I there a way I can go through all objects in the layer?

    or

    How can I find number of objects in a layer?

    I'm going through the API documents but could not find.

    Here is the code I wrote,

    var artLayer = undefined;
            if(app.documents.length == 0)
            {
                app.documents.add();
            }
            var myDocument = app.activeDocument;
            var layerCount = myDocument.layers.length;
            
            
            for (var index = layerCount - 1; index >= 0; index-- ) 
            {
                var targetLayer = myDocument.layers[index];
                var layerName = new String( targetLayer.name );
                if(layerName == "Colorways")
                {
                    artLayer = myDocument.layers[index];
                   
                    //Can I iterate through objects in a layer??
    //                for(var newIndex = 0; newIndex < artLayer.items.length;newIndex++)
    //              {
    //                    Need something like this
    //                }
    
    
                    break;
                }
            }
    

    instead of points, you should use "pageItems.

    for (newIndex var = 0; newIndex)< artlayer.items.length;newindex++)="" there="" is="" no="" "items"="">

    for (newIndex var = 0; newIndex)<>

    or as in your second post, instead of the activeDocument, target your layer

    index

    index

  • How to calculate the number of days/weeks/months between 2 dates?

    Hello

    I would like to know how to calculate the number of days/weeks/months between 2 dates in OBIEE 11 g, for example, I have 26/05/2013 and 19/05/2013, then I want to get 7 days.

    Thank you!
    Jamie

    Hi Jamie,

    Through this links...

    http://www.bravesoft.com/blog/?p=682
    http://twobiee.blogspot.in/2012/01/working-with-date-differences.html

    Mark as correct it allows u...
    Thank you...

  • How to find the number of users connected to the database of the level operating system (Linux)

    Hi all

    Could someone knows how to find the number of users connected to the database without connection with sql * more

    y at - it a command to find?

    example, we have 10 databases in a server, how to find the number of users connected to the special data base without connecting to database(v$session)?

    the Oracle version:-10g, 11g
    Operating system:-OEL4, OEL5, AIX, Solaris

    any help will be appreciated.

    Thanks in advance.

    Thank you.

    Kind regards
    Rajesh.

    but you can say total number of connection with the above given the command? It would also be useful to know.

    See you soon,.
    LKM

  • How to control the number of fields in the Advanced mode in &lt; af:query &gt;

    Hello

    How to control the number of fields in the Advanced mode in < af:query >?

    Say I have 20 fields in my table, and I created a view of criteria with 2 fields. This would work perfectly in basic mode. But in Advanced mode , the choice of fields is possible by clicking on the Add fields button. I didn't have the customer to search with all 20 fields. Only 10 fields must be listed in the Advanced Mode, even if there are 20 fields in my table.

    How can I control the list of fields in ADDFields button?

    Any ideas?



    KR

    You can uncheck the contestable ownership of attributes that you must not appear in the Advanced Mode (but they will not appear in the other modes too!) or by programming the value the same as those mentioned here.

    http://adfcodebits.blogspot.com/2010/11/bit-27-setting-view-object-attributes.html

    Also, you can hide the button AddFields as suggested here - http://www.notjustjava.com/2011/12/cool-tips-to-showhide-components-of-the-query-control-of-adf/

Maybe you are looking for