Please help get the logic for this

Hello Frs,

I need like if a number is a whole number divide by 100, otherwise if we number integer (for ex 500.23) then leave it as it is how to write a logic to find out if a number is integer or not?

I need to write a function similar to the following

Begin
If invoice_amount = 500 (integer)
then a = invoice_amount/100;
on the other
a = invoice_amount;
end if;
return a;
end;

If anyone has idea pls help


Thank you
Marilou

Hello

You can do this in SQL by using the CASE statement.
For example:

SELECT  CASE            WHEN  invoice_amount = TRUNC (invoice_amount)            THEN  invloce_amount / 100            ELSE  invoice_amount        END     AS a...

Tags: Database

Similar Questions

  • When I turn on the system of its display in the moniter as NTLDR missing.please give me the solution for this problem.

    When I turn on the system of his displayiing on the moniter as NTLDR missing. Please give me the solution for this problem

    Hello

    NTLDR is not used for installation of Vista, it's a vestige of WinXP / 2K. If it is listed as "missing", then your boot sector is damaged and must be repaired. The steps are described here: http://support.microsoft.com/default.aspx/kb/927392?p=1

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • can someone please give me the code for this equalant?

    Hi friends

    Hi friends I need and equivalent of the code for the script because I shouldn't use below the script.even below if it entitles answer.please give alternative

    NVL2 (EndTime, 'Successful', 'Error') "Status".
    ===========================

    "" The real need is, if the "endtime" is null means I want the error if status is not null means I want status to succeed

    can someone please give me the code for this equalant?

    Thanks adavance

    Thil

    Select decode (endtime, null, "Error"
    'Successful') that the 'status' from tablename

  • Help get the css for pagination webapp work

    Hi I need help to get the pagination of a web application show.

    The page I am on is:

    http://www.humbugdance.com/dancelist

    It paging down.

    There are two stylesheets linked from the page, one for the modules and onne to style the rest of the page.

    I am struggling to find a rule that is causing the problem, any help would be greatly appreciated.

    If someone can tell me where I'm wrong, I'd be extremely grateful.

    I copied the below two style sheets:

    Module:

    http://jsfiddle.NET/22LYz/

    Thank you

    Post edited by: Liam Dilley

    Hey there,

    I edited your post that it was a LOT of css for a forum. I added in to a jsfiddle for you.

    Have you used firebug or use your browser check tool? Here are the things that you use to find what CSS uses an element and how to change it on the fly and then add in your CSS.

    If you provide your site connect people like me will just do tha tto find the problem for you.

    You forgot to say what your problem is what is the problem?

  • I keep getting "the certificate for this server is invalid" for all SSL web sites.

    Since the upgrade to Mac OS Sierra I get certificate errors on my Mac Pro to the end of 2013.  It will work fine right after a reboot, but then it will start refusing to open all web sites that use SSL.  In this case until I restart, then it kinda good.

    I thought it was some kind of problem caused by the application of update after update to the Member, then I've completely erased from the hard drive and reinstalled Sierra fresh. And now the issue of the certificate is back.

    Anyone else having issues like this?  Anyone know of a fix?

    Do you have a third party anti virus or other applications that claim to protect, manage, clean, etc. from your computer? If so, uninstall them. Do you get the same message when you are using another browser?

  • How can I downgrade from Windows 7 to Windows XP? Where can I get the disks for this?

    No not supplied with the PC recovery CD.  Where to get recovery HP CDs. says buy from Microsoft, Microsoft says contact manufacturer

    original title: Downgrade from windows 7 to XP

    If you have an HP computer with Windows 7 pre-installed,

    (a) you will not be able to find the drivers for your computer hardware for XP (except if you bought your computer, just like Windows 7 was spilled) - even if you could find somehow a copy of XP to install and

    (b) any person at HP who told you to contact Microsoft won't - HP is obliged by its license from Microsoft to provide you with a mechanism (it doesn't have to be physical CDs) to reinstall the operating system that was on the computer when you bought it.

    What is your "product number" HP?  See http://h10025.www1.hp.com/ewfrf/wc/findModel?lc=en&dlc=en&cc=us

    Why would you downgrade to XP anyway?

  • When I insert the disc, it calls for Windows Live messenger. I can get the download for this page, but it will not download.

    I have a package of Microsoft Life Chat LX 3000. The startup disk name for Windows Live Messenger. I can find the place of origin of this package, but when I press download, that nothing happens

    Hello
     
    For the different Forums for Windows Live Applications, select the link below
     
    Welcome to Windows Live Solution Center
  • Please help get the same message when I turn on the computer... on my mini hp 110 s/n CNU9440PW9

    I'm not sure what the name of the product is a don't know if it's the 32 or 64 bit, but when I turn on the computer, it pops up with an agreement that says enter current password one I tried some it could be a TI repeat me password verification failed... fatal error... missed are CNU9440PW9

    Hello

    Enter e9lovv12do (3rd character is a lowercase L)

    Kind regards

    DP - K

  • PX2 - 300 d - where can I get the MIB for a LeNovoEMC PX2 - 300 d?

    Hello

    I would get the MIB for this product.

    Where can I get?

    Thank you.

    Bird,

    Just found this:

    If a client requests a mib file for SNMP implementation, this is the link to click:

    http:///manage/mibs/lenovoemcmib.txt

  • Help! All programs will not work. I get the error message: "this file has no program associated with it for performing this action. Create an association in the control panel to define the Associations. "

    When I try to run a program (Internet Explorer, Firefox, CCleaner, etc..) I get the same message: "this file has no program associated with it for performing this action. Create an association in the control panel to define the Associations. "

    I can't find the "Set Associations control panel" and am not sure that he would go if I could find it, and if it work I do not know I know what to do. Help!

    Should I re - publish so that else soeone looks like?

    If you wish.
    Make sure you add a line right at the beginning: you are reposting because we could not have solved other fold it.

    Alternatively, you wait for the next person coming.

    The choice is yours, although generally you would be advised to stay put and wait. For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Dear Sir/dear Madam, two days ago I registered to use creation of cloud photography package 300 THB per month LR + PS. And I see the promotion for this package 240 THB per month. Could you please help to change promoting 240 THB? Thank you.

    Dear Sir/dear Madam, two days ago I registered to use creation of cloud photography package 300 THB per month LR + PS. And I see the promotion for this package 240 THB per month. Could you please help to change promoting 240 THB? Thank you.

    This is an open forum, not Adobe support... below to connect with Adobe personnel to help

    While the forums are open 24/7 you can't contact Adobe support at any time

    Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

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

  • Windows Update driver Fresco Logic USB Hub rot caused the pilot to read device status: the drivers for this device are not installed. (Code 28).

    Windows Update driver Fresco Logic USB Hub rot caused the pilot to read device status: the drivers for this device are not installed. (Code 28). The Roll Back button is not active. Where can I get the previous driver that came with my system. ASUS N53S Windows 7. Thank you very much.

    Hello

    Thanks for posting in the Microsoft Community.

    I understand your annoyance that you cannot update the driver hub USB rot. Please follow the steps below to help you to solve the problem.

    I would like to inform you that a Code 28 error is caused by a driver missing for that piece of hardware.

    There are all sorts of reasons that a driver could not be installed for a device, but your troubleshooting the problem will be the same regardless of the root cause.

    • Remove or reconfigure newly installed unit.
    • Restore the version before your driver update.
    • Use system restore to undo recent changes in Device Manager.

    Step 1: Roll back the driver to the version before your update.

    If you are having problems with your computer or device after upgrading sound driver, you can restore to an earlier device driver. If you are having problems with your computer or device after upgrading sound driver, you can restore to an earlier device driver. If you are having problems with your computer or device after upgrading sound driver, you can restore to an earlier device driver. If you are having problems with your computer or device after upgrading sound driver, you can restore to an earlier device driver. Check out the link below to make back the driver:

    http://Windows.Microsoft.com/en-in/Windows/restore-driver-previous-version#1TC=Windows-7

    When Windows 7 starts up again, it will load with the device driver of this material that you had previously installed.

    I suggest you to uninstall the driver from hub to rot Fresco Logic USB Device Manager and install the most recent on the manufacturer's Web site.

    Tips for solving common driver problems:

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-driver-problems

     

     

    Hope this information is useful. Feel free to get back to us for further questions or problems related to the Windows operating system.

    Thank you.

  • I have a little problem with my HP KU0841 keyboard I used to be able to hold two keyes to get the symbol for the pound sterling but it won´t work now all the ideas that I hit to stop this work?

    Can anyone help please.  I used to be able to get the symbol for the pound Sterling by pressing ALT and 0163 at the same time, maybe you'll know

    That's how you used to make the binary code on non-electric machines punch original card.  This will make me sound old?

    It's very frustrating that nothing bought here in Spain is not consistent with the rest of Europe, it is purely for the Spanish market.  I need to use this and other symbol that don't appear on my keyboard, but it is very - very sensitive touch and I think I must have hit another function key for stopping this work but can find nothing written on the computer and the manual was not in the box. as usual.

    Please let know us if possible thank you.

    Start > all programs > Accessories > system tools > character map

    http://symbolcodes.TLT.PSU.edu/accents/Charmap.html

    You can drag the key and drop it in your report or use the code indicated in the bottom right of the application

    Key codes Alt Windows

    http://symbolcodes.TLT.PSU.edu/accents/codealt.html

  • Please help restore the security questions for me.

    I'm trying to restore security questions via the website, but there is no success. Please help me to reset for me.

    You must ask security team account Apple to reset your security questions. To contact them, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.

    (144314)

  • I try to sync my MS Outlook calendar &amp; contacts to icloud/iphone, ipad.  Now icloud holds my calendar and contacts, but when I try OT set an appointment, I get the dreaded message that it is not in the calendar for this account &amp; wi

    I try to sync my MS Outlook calendar & contacts to icloud/iphone, ipad.  Now icloud holds my calendar and contacts, but when I try to set up an appointment, I get the dreaded message that it is not in the calendar for this account & will not be counted.

    My schedule is extremely important as are my contacts.  How to export the icloud to get back them to outlook.  I use MS Outlook 2010.  I can't put the icloud as my default - Help

    Which calendar you use, there will be two, one to iCloud and who is not, you must be in the iCloud calendar

Maybe you are looking for