Getting an error message when one of the values in a formula is null

Hi,
I am using a query to generate report... my query looks like this:
select     
CUSTOMER_NAME,
(sum(MILLAGE)*MILEAGE_RATE) as TOTAL_INVOICE,
from     
     T_TIME_REPORTING
where
CUSTOMER_NAME = :P22_CUST_NAME
group by
CUSTOMER_NAME
it's working fine when there is a valid value for MILLAGE and MILEAGE_RATE but giving an error message when anyone of them is null... please advice how to fix this issue
Thanks in advance

my query looks like this:
select
CUSTOMER_NAME,
(sum(MILLAGE)*MILEAGE_RATE) as TOTAL_INVOICE,
from
T_TIME_REPORTING
where
CUSTOMER_NAME = :P22_CUST_NAME
group by
CUSTOMER_NAMEThat would not work even when all values are not null:
select ename, sum (sal) * comm
    from emp
   where ename = 'ALLEN'
group by ename
Error at line 1
ORA-00979: not a GROUP BY expression

Similar Messages

  • TS4002 I'm getting an error message when I try the click on a link in an email. No associated application could be found. How do I fix this problem?

    I'm getting an error message when I try the click on a link in an email. No associated application could be found. How do I fix this problem?

    Is this a one-off or a general problem? If a one-off, is it a link to a web page or something else? If not a web page, try control-clicking on it and choosing to download the linked file. This will at least access the file though it might be to something you don't have an application to open with. If you do this, what sort of file do you get? - select it and hit command-i to get information on it.

  • I get an error message when I compile the following.

    When I try to compile the following with Forte for Java I get an error
    import com.ms.security.*;
    import java.io.*;
    import java.net.*;
    import java.lang.Runtime;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import java.applet.Applet;
    import java.text.*;
    import java.util.Enumeration;
    import java.applet.*;
    import java.*;
    public class php extends java.applet.Applet {
    public void init ()
    private eector postResult()
    throws MalformedURLException , IOException
    URL url;
    URLConnection con;
    OutputStream oStream;
    String parameterAsString;
    byte [] parameterAsBytes;
    String aLine;
    parameterAsString = "x=2&y=2&z=2";
    parameterAsBytes = parameterAsString.getBytes();
    url = this.getCodeBase();
    url = new URL(url + "index.php3");
    con = url.openConnection();
    con.setDoOutput(true);
    con.setDoInput(false);
    con.setRequestProperty("Content=length",String.valueOf(parameterAsBytes.length));
    oStream = con.getOutputStream();
    oStream.write (parameterAsBytes);
    oStream.flush();
    BufferedReader in =new BufferedReader(new InputStreamReader(con.getInputStream()));
    aLine= in.readLine();
    while (aLine != null)
    System.out.println();
    aLine = in.readLine();
    in.close();
    oStream.close();
    The error message is
    php.java [22:1] cannot resolve symbol
    symbol : class eector
    location: class php
    private eector postResult()
    ^
    1 error
    Erros compiling php.
    Please help

    Is the postResult function supposed to return somthing (I don't see a return statement?). If not replace eector with void. If it returns something replace it with the type of the returned data wich might be Vector (mind the Cap).

  • Is the ITunes Store down.  I can search and buy but keep getting and error message when I try the home page.

    Is there a problem with the ITunes Store?  I can search for a title and download it.  owever I can't get to the home screen without a message that tells me the item is unavailable in the US Store.

    It must be down.  I will try later.  From the past messages this happens from time to time.

  • Im getting an error message when syncing ipad "The disk could not be read or written to"

    Help...

    hiya!
    let's start with this document:
    "Disk cannot be read from or written to" when syncing iPod or "Firmware update failure" error when updating or restoring iPod
    love, b

  • Can someone tell me how or why I'm getting an error message when I download the itunes update.

    Hi.  The download for the itunes update gives me an error 7 windows 193. How do I fix that?

    Well, first, if you want help for an iTunes problem, you shouldn't post in the iPad forum. :-)
    I've asked that your post be relocated to the appropriate forum.
    This should answer your question. http://support.apple.com/kb/TS3074

  • I am getting this error message for one of the columns in my big table:

    FOR XML could not serialize the data for node 'NAME' because it contains a character (0x001A) which is not allowed in XML. To retrieve this data using FOR XML, convert it to binary, varbinary or image data type and use the BINARY BASE64 directive.

    The message is fairly clear: it is simply the case that some characters are not permitted in XML.
    Character 0x001A is 26 decimal and this is a control character and if you have this in a column called NAME there is something spooky with your data, and there is reason to investigate this:
    SELECT * FROM tbl WHERE charindex(NAME COLLATE Latin1_General_BIN2, char(26)) > 0
    If you don't care, you can wrap the troublesome column replace:
    replace(NAME NAME COLLATE Latin1_General_BIN2, char(26), '?')
    The binary collation is required since char(26) is typically an undefined character in a Unicode non-binary collation and unexpected things happens.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • I am running Windows7 on my PVC. When I log in I'm getting two Apple error messages. One says, " The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll." The second says, "Apple Photostreams stop

    I am running Windows7 on my PVC. When I log in I'm getting two Apple error messages. One says, " The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll." The second says, "Apple Photostreams Uploader has stopped working".  Help!

    Entry point errors can often be fixed by deleting the offending dll, then repairing the component it is part of. If that doesn't help read on...
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If the advice above doesn't resolve things you could try this alternate version:
    iTunes 12.1.0.71 for Windows (64-bit - for older video cards) - itunes64setup.exe (2015-01-28)
    which is a 64-bit installer for the 32-bit version of the core application, similar to previous 64-bit releases.
    Or roll back to the previous build:
    iTunes 12.0.1.26 for Windows (32-bit) - iTunesSetup.exe (2014-10-16)
    iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16)
    tt2

  • I get an error message when trying to sign into the support community with another Apple id. On the pick a username screen I get "an account utilizing this address already exists...." despite trying a few usernames. Anyone know how I can resolve this?

    I get an error message when trying to sign into the support community with another Apple id. On the <pick a username> screen I get "an account utilizing this address already exists.Only one account per email address is allowed on the Apple Support Communities" despite trying a few usernames. Anyone know how I can resolve this?

    This problem has been driving me demented. The instructions that Ivan gives have partially worked for me. By following his link
    "How to find out if you have multiple Apple IDs" I was able to identify that yes I did have two apple accounts using the same e mail address. One was very old that I used to use for the forum boards and one is my much more recent ID that I use for everything these days. So I changed the e mail address for the old account which is associated with these discussion boards and that's the account that I am now posting this from. However even though the two accounts now have different e mail addresses when I try to log onto the boards with my more recent main apple ID I still get all the same errors as described at the start of this thread by rodgers_j. And of course that's the one I want to use so that I only have one itunes account for everything.
    So if anyone has any more hints I'd be very grateful.

  • Since I installed Nero 2104 I get an error message when I try to start iTunes: registry settings changed probably due to other cd/dvd burning program please reinstall iTunes, which I've done using repair option but the problem persists...?

    Since I installed Nero 2014 I get an error message when I start iTunes that registry settings for importing and burning cds/dvds have changed probably due to other burning software installed please reinstall iTunes, which I've done using 'repair' option, but the problem persists. I have been able to import cds to iTunes since I installed Nero, but it won't anymore. Does anyone recognize this problem and have a solution? Thanks for any help. Using Windows 7.

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes
    If you're still getting the error message (especially when you plug in the Touch), I'd check for a device filter confusion on the PC. (They can affect the connection of USB devices to a PC, as well as burning and importing CDs.) For that one, see:
    iTunes for Windows: Troubleshooting CD issues caused by device filters

  • I keep getting an error message when downloading a new app which states " Zinio and 5 other apps cannot be purchased at this time" and then it let's me purchase the app that I was looking at? Can anyone explain that?

    I keep getting an error message when downloading a new app which states " Zinio and 5 other apps cannot be purchased at this time" and then it let's me purchase the app that I was looking at? Can anyone explain that?

    apple_master New Delhi, India
    This solved my questionRe: Unable to Purchase 
    Apr 16, 2012 10:22 PM (in response to eight4seven)
    This worked for someone
    I had this problem for about six weeks. I was following this forum but was too unsure of what might happen to try the fixes that were suggested.
    About two weeks ago I decided to delete the downloads.28.sqlitedb file (usingDiskAid(a free program), on a PC running Windows 7). The original downloads.28.sqlitedb was 936 KB. The new one that the system created is 80 Kb., and has stayed at about that size. After about four days I also deleted all the other contents of the Download folder. Ten days later and still no more problems. Downloads are much quicker, nothing greys-out (as was happening frequently before).
    Everything has worked well since with no more error messages.
    I am using an iPod 4G, iOS 5.1 (originally iOS 5.0). I do not have a manifest file, and as far as I know, have not had one. DiskAid can search the whole "hard drive" on the iPod.
    Deleting downloads.28.sqlitedb and the contents of Downloads worked for me.

  • I get an error message when I try to use share function on IPhoto. I get the triangle icon with an exclamation mark inside of it.

    I get an error message when I try to use the share function on iPhoto. When I try to share photos via email a triangle icon with an exclamation mark appears. Why can't I use share function?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    What version of iPhoto? Assuming 09 or later
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    Regards
    TD 

  • I keep getting an error message when logging onto iCloud. It states that "you cant sign in because of a server error".  But the cloud status is "normal".

    This is happened today after I udpated my iPad to IOS v7 and iTunes to 11.1.0.126  and only for one of my computers.  I keep on getting an error message when trying to log onto iCloud.  The error message is "you cannot sign-in because of a server error" but the iCloud status is "normal" and iCloud is fine on my other computers.

    Next day the problem still continued.  I did restart my computer a couple of times and then "it worked".  Not sure why - if it really was a server problem or something on my side.

  • I get an error message when I connnect my digital camera to my Ipad 2 to dump pictures.  Something about the device (camera) takes too much power?

    I get an error message when I connect my digital camera to my Ipad 2.  Something to the effect that the device takes too much power...Any ideas how to remedy?

    Kevin-
    I've read that Apple reduced the current limit for their Camera Connection kit, with one of the iOS updates.  It is a known problem, so they may have made an adjustment with a later update.  Be sure you have the latest version (4.3.3) on your iPad 2.  If you continue to have the problem, report the details to Apple at
    <http://www.apple.com/feedback/>.
    One thing to try is to use your camera's memory card directly with the Camera Connection kit.  (Use a card-to-USB adapter if the card is not SD.)
    Fred

  • I am trying to install MasterCollection_CS6_LS16. When I click the install file I get this error message: We've encountered the following issues. Installation on case-sensitive volumes is not supported. Please choose a different volume for installation.

    I am trying to install MasterCollection_CS6_LS16. When I double click the install file I get this error message: We've encountered the following issues. Installation on case-sensitive volumes is not supported. Please choose a different volume for installation. What does that mean? How should I proceed?

    Hey iraravitz,
    Could you please let me know what version of OS are working on.
    You might receive this error when you attempt to install on a drive with the HFS+ Case Sensitive file system, which is not supported for installation of Adobe Creative Suite 6.
    So, please try installing on a drive that has been formatted with a supported file system.
    You might refer the KB doc link mentioned below for the same:
    Error "Case-sensitive drives not supported" or similar install error | Mac OS
    Let me know if this helps.
    Regards,
    Anubha

Maybe you are looking for

  • Error on page Access is denied

    Hi I created a URL iView to an application that runs on a computer in my internal network and attached the iView to a page. When I enter that page I get the application user&password to fill out. After filling the user&password I get an error on page

  • Urgent help needed please, with parse error message

    Hi. I've got a page which comes at the end of a 3 page sequence - search, results, detail. The detail page had been working fine, but yesterday I added a second recordset to the page, to pull reviews from a separate table, and now I'm getting the fol

  • Table For Checking Credit Limit Block

    Hi Expert, We have scenario like this : I have created Sales Order with number for example 120000. And then I'm going to create Delivery order from that sales order. when i would like to save the delivery order, system gives the error message like th

  • My volume works for notifications and not music, help!

    My volume won't work, but my alarm and notifications will :/

  • Define a Portal URL Alias

    Hi gurus, Is possible to define an alias for my portal URL? I want to use an URL like http://myportal.com/irj/portal and I don't want to use an URL like http://server:port/irj/portal. Thanks a lot! Best regards, Iván.