Can a number column have spaces in it?

Dear All,
Summing the amount column gives me different totals when i do trim or to_number.
Select sum(amount) from premium_transaction
where load_date = '18-jun-2007';
2220732.34
Select sum(to_number(amount)) from premium_transaction
where load_date = '18-jun-2007'
2226892.63
Select sum(trim(amount)) from premium_transaction
where load_date = '18-jun-2007'
2226892.63
I am assuming that some of the values in the amount column has spaces in it. If it has spaces wouldn't sum function convert implicitly to number before computing.
Please shed some light on this.
Thank you,
Siri

I am sorry for the late response. I was pulled into bunch of other stuff.
Thanks so much for the feedback. The analytic function along with dump function helped me in tracking down the actual rows and values that are behaving differently, although i couldn't figure out the pattern of the behavior.
Below are the sample data:
SELECT premium_amount,
       TO_NUMBER(premium_amount),
       TRIM(premium_amount)
  FROM truecomp_premium_tbl
WHERE policy_no IN (2938891, 2942878, 2937642)
   AND data_source = 'TAPPDOUT'
PREMIUM_AMOUNT     TO_NUMBER(PREMIUM_AMOUNT)     TRIM(PREMIUM_AMOUNT)
-9.32     -9.32     -0000009.32
-30.04     0.00     -0000000
-67.46     0.00     -0000000
SELECT policy_no,
       premium_amount,     
       SUM(premium_amount) OVER (ORDER BY ROWNUM) AS the_sum,     
       SUM(TO_NUMBER(premium_amount)) OVER (ORDER BY ROWNUM) AS the_sum2,     
       SUM(TRIM(premium_amount)) OVER (ORDER BY ROWNUM) AS the_sum3,
       DUMP(premium_amount) AS the_dump,
       DUMP(premium_amount,1017) AS the_dump
  FROM (SELECT policy_no, ROWNUM rn,
               premium_amount
          FROM webclient.truecomp_premium_tbl
         WHERE commission_date = TO_DATE('18-June-2007')
           AND data_source = 'TAPPDOUT') t
ORDER BY rn
POLICY_NO     PREMIUM_AMOUNT     THE_SUM     THE_SUM2     THE_SUM3     THE_DUMP                                            THE_DUMP_1
2,916,092             -29.58      -29.58       -29.58       -29.58     Typ=2 Len=7: 59,101,101,101,72,43,102     Typ=2 Len=7: ;,e,e,e,H,+,f
2,924,967             -15.11      -44.69       -44.69       -44.69     Typ=2 Len=7: 59,101,101,101,86,90,102     Typ=2 Len=7: ;,e,e,e,V,Z,f
2,930,793            -188.32     -233.01      -233.01      -233.01     Typ=2 Len=7: 59,101,101,100,13,69,102     Typ=2 Len=7: ;,e,e,d,^M,E,f
2,935,006            -469.00     -702.01      -702.01      -702.01     Typ=2 Len=6: 59,101,101,97,32,102     Typ=2 Len=6: ;,e,e,a, ,f
2,937,642              -9.32     -711.33      -711.33      -711.33     Typ=2 Len=7: 59,101,101,101,92,69,102     Typ=2 Len=7: ;,e,e,e,\,E,f
2,938,891            -30.04     -743.42      -711.33      -711.33     Typ=2 Len=7: 59,101,101,101,70,197,102     Typ=2 Len=7: ;,e,e,e,F,c5,f
2,942,878             -67.46     -812.93      -711.33      -711.33     Typ=2 Len=7: 59,101,101,101,32,255,102     Typ=2 Len=7: ;,e,e,e, ,ff,f
2,943,529            -175.68 -988.61      -887.01      -887.01     Typ=2 Len=7: 59,101,101,100,26,33,102     Typ=2 Len=7: ;,e,e,d,^Z,!,f
2,946,041           -127.88-1,116.49-1,014.89 -1,014.89     Typ=2 Len=5: 61,100,74,13,10            Typ=2 Len=5: =,d,J,^M,f
2,955,186             -21.60-1,138.09-1,036.49 -1,036.49     Typ=2 Len=7: 59,101,101,101,80,41,102     Typ=2 Len=7: ;,e,e,e,P,),f
2,957,617            -25.32-1,163.41-1,061.81 -1,061.81     Typ=2 Len=7: 59,101,101,101,76,69,102     Typ=2 Len=7: ;,e,e,e,L,E,f
2,957,827             -52.20-1,215.61-1,114.01 -1,114.01     Typ=2 Len=7: 59,101,101,101,49,81,102     Typ=2 Len=7: ;,e,e,e,1,Q,f
Thank you,
Siri                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Please for referral information, how can I get more disk space, or actually information and guidelines that can have enough free disk space. How, I have to delete documents or downloading to another drive.

    Please for referral information, how can I get more disk space, or actually information and guidelines that can have enough free disk space. How, I have to delete documents or downloading to another drive. (The problem is that Safari could not download the file "iTunesSetup.exe" because there is not enough free disk space.Try deleting documents or downloading to another drive) ... Perhaps this is the main problem why can not open iTunes and inscription is: the folder "iTunes" can not be found or created, and is required. The default location for this folder is inside the "Music" folder. - And after options ok, appears option: Choose iTunes Library with inscription iTunes needs a library to continue. You may choose an existing iTunes library or create a new one - but still following options Choose Library and the following options can not open iTunes ... Please for instructions on how to eliminate the problem or eror ...
    Mac is running OS X v10.6.8, Safari should be 5.1.10. Or  Mac OS X  /  Version  10.6.8  /  Build 10K549 / Serial Number W8****ATM  /  Processor 2.4 GHz Intel Core 2 Duo  /  Memory 4 GB 1067 MHz DDR3 or More Info:
    Hardware Overview:
      Model Name: MacBook Pro
      Model Identifier: MacBookPro7,1
      Processor Name: Intel Core 2 Duo
      Processor Speed: 2,4 GHz
      Number Of Processors: 1
      Total Number Of Cores: 2
      L2 Cache: 3 MB
      Memory: 4 GB
      Bus Speed: 1,07 GHz
      Boot ROM Version: MBP71.0039.B0B
      SMC Version (system): 1.62f7
      Serial Number (system): W80394HFATM
      Hardware UUID: 94647506-C5D0-5D73-BC7F-FC680D238F43
      Sudden Motion Sensor:
      State: Enabled
    <Personsl Information Edited by Host>

    buy an external HD   1TB for $60
    NO notebook is a mass storage device, so dont try to turn it into one, it doesnt work that way.
    Unless youre using it every couple weeks, its static data and should be on an external HD
    In the case of a Macbook Air or Macbook Pro Retina with ‘limited’ storage on the SSD, this distinction becomes more important in that in an ever rapidly increasing file-size world, you keep vital large media files, pics, video, PDF collections, music off your SSD and archived on external storage, for sake of the necessary room for your system to have free space to operate, store future applications and general workspace.  You should never be put in the position of considering “deleting things” on your macbook SSD in order to ‘make space’.
    Professionals who create and import very large amounts of data have almost no change in the available space on their computers internal HD because they are constantly archiving data to arrays of external or networked HD.
    Or in the case of the consumer this means you keep folders for large imported or created data and you ritually offload and archive this data for safekeeping, not only to safeguard the data in case your macbook has a HD crash, or gets stolen, but importantly in keeping the ‘breathing room’ open for your computer to operate, expand, create files, add applications, for your APPS to create temp files, and for general operation.

  • We can't add a decimal number column with the create table forms

    In the version 4, we can't add a decimal number column with the create table forms.

    In the GUI, I found the following column (I translate from french to english): PK, Name, Data_type, lenght, not null, default, comments.
    In the lenght field, if I enter 9,3 to have a NUMBER(9,3), I have a message saying that the number must be an integer.

  • I have 2 iCloud accounts. Can I delete one account so I can make use of additional space I purchased for the secondary account? Also iPhoto seems to only connect to the primary account? How do I send files to the secondary account?

    I have 2 iCloud accounts. Can I delete one account so I can make use of additional space I purchased for the secondary account? Also iPhoto seems to only connect to the primary account? How do I send files to the secondary account?

    Both accounts are completely independent from each other. In order to use the space that you have purchased for your secondary account, you must change it to become your primary account. Yes, as you said, services like photo stream only work with the primary account. Unfortunately, there is no comfortable way to just transfer data from one account to another one, but you can do it via a third party application e.g. via Dropbox: e.g. for photos: photos stored with your current primary account > manual transfer to dropbox > after you made your secondary account to the primary account,  transfer the photos back to your new primary account etc.

  • How can I set up an SMS group so that all group members can dial a group number and have a text sent out to all members of the group

    How can I set up an SMS group so that all group members can dial a group number and have a text sent out to all members of the group
    This would be an SMS group similar to an email listserv but running on the SMS network
    I have seen private individuals offering this service
    It seems strange to me that no internet site like Apple, Yahoo or Google offers this as a free service much as the email group services are free services.
    Steve

    I think the app GroupMe might do what you want. You might also try contacting your carrier. My carrier offered some fancy group texting service for a while but they never really advertised it so, unless you asked, you never would have known. But, GroupMe is available in the app store. There are lots of other apps that also do group texting but it seems to be the one that gets recommended the most.

  • How can I set up multiple spaces (desktops) on my new MacBook Pro 10.9.5?  I have six set up on my other computer MacBook Pro 10.8.5 but can't find how to do it on this new one.  Would appreciate help on this.  Cheers.

    How can I set up multiple spaces (desktops) on my new MacBook Pro 10.9.5?  I have six set up on my other computer MacBook Pro 10.8.5 but can't find how to do it on this new one.  Would appreciate help on this.  Cheers.

    It's not completely obvious. What you have to do in Spaces is to position your cursor to the upper right of the screen, after which faint + (plus) sign appears in that area. Click that, upon which another Desktop will appear.
    The + may be difficult or impossible to see with some desktop backgrounds (black, for instance):

  • I bought 3 iPhone 4s and each should have 5gb of cloud. I want to only use my one iTunes ID. How can I get this storage space increased to the 15 GB?

    I bought 3 iPhone 4s and each should have 5gb of cloud. I want to only use my one iTunes ID. How can I get this storage space increased to the 15 GB?

    iCloud storage is not allocated by device. iCloud storage is allocated to your iCloud AppleID. You get 5GB of iCloud storage.

  • I deleted all my photos and videos and then delete the deleted files but the photo app is still taking up 12 GB of space and I have no room for new stuff.  How can I clear the memory space used by my deleted videos and photos?

    I deleted all my photos and videos and then delete the deleted files but the photo app is still taking up 12 GB of space and I have no room for new stuff.  How can I clear the memory space used by my deleted videos and photos?  I don't know why the photos are still taking up space and if I will have to reset my phone to get rid of the problem.

    Hey there TowneJ,
    Welcome to Apple Support Communities.
    The article linked below provides troubleshooting tips that’ll likely resolve the issue that you’ve described, where deleted files appear to be taking up space on your iPhone 5.
    If you get a "Not enough free space" alert on your iPhone, iPad, or iPod touch - Apple Support
    So long,
    -Jason

  • How, please, can I get rid of the icons in the bookmarks toolbar so I have space for more bookmark names? Thank you

    I try to get as many items as I can in the bookmarks menu toolbar (typically using 3 letter names). F4 adds an icon next to each name - taking up valuable space. How, please, can I get rid of the icons in the bookmarks toolbar so I have space for more bookmark names? Thank you.

    If you remove the names then you may have a problem with organizing or searching for bookmarks.<br />
    If you do not want to use the extension then you can achieve the same effect with code in userChrome.css<br />
    That is what I would do.
    Add code to userChrome.css below the @namespace line.
    * http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #personal-bookmarks .toolbarbutton-icon { display:none !important;}
    </nowiki></pre>
    * http://kb.mozillazine.org/Editing_configuration
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html

  • I have CD version of Adobe Photoshop Element 9. I have CD version of Adobe Photoshop Element 9. I have purchased the new Macbook which does not have DVD drive. Can I download this software over the web and install using the Serial Number I have. Thanks,

    I have CD version of Adobe Photoshop Element 9. I have CD version of Adobe Photoshop Element 9. I have purchased the new Macbook which does not have DVD drive. Can I download this software over the web and install using the Serial Number I have. Thanks,@

    yes,
    Downloads available:
    Suites and Programs:  CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • I bought an iphone 4s from a pawn shop,i need to check and make sure the phone is clear to be activated in my name,i was told you can check the IMEI number,i have the number,but what do i do with it?

    I bought an iphone 4s from a pawn shop,i need to check and make sure the phone is clear to be activated in my name,i was told you can check the IMEI number,i have the number,but what do i do with it?

    Who is the carrier the iPhone is carrier locked with?
    If the carrier has a blacklist for lost/stolen cell phones, it would be the carrier you need to contact.

  • I don't have space on iPhone and iPad anymore.. So I bought 10GB on iCloud and backup both electronics. So what I wanna know is can I delete my apps and pics in order to get more space on my devices

    I don't have space on my iPhone and iPad anymore.. So I bought 10GB on iCloud and backup both devices. So what I wanna know is can I delete my apps and pics in order to get more space on my devices?

    You can delete apps (which will also delete their content), but they will only be redownloadable whilst they remain in your country's store - none of your iTunes downloads (apps, music, ibooks etc) use any of your iCloud storage, iCloud is for your backups (e.g. app's content, camera roll photos, messages, homescreen layout).
    To delete an app, press and hold any of the apps and after a couple of seconds or so they should start to shake. Then press the 'x' in the left corner to delete the ones that you don't want, and when you've finished deleting press the home button so as to stop the shaking. If you don't get the 'x' on any of the apps that you've downloaded (you can't delete built-in apps) then check that Settings > General > Restrictions > Deleting Apps isn't set 'off'
    You can delete photos from your iPad, but if you want them back then you should copy them to your computer first.
    Copying photos to a computer : http://support.apple.com/kb/HT4083
    You can also copy your downloads (apps, music, films etc) to your computer's iTunes by connecting your iPad and/or iPhone to it and doing File > Devices > Transfer Purchases.

  • Can we have spaces in our filenames?

    We are moving web publishers on our projects web site here at edinburgh University over to use Contribute CS4. the site has many files that contain spaces in their name, both HTML and MS documents. Contribute seems to force the removal of these spaces, thus breaking links in the site. Is there any way around this problesm? Can we configure Contribute to allow spaces in filesnames?
    Arthur Wilson
    University of Edinburgh
    Applications Division

    Contribute will not allow new pages to have spaces (or any special charactes) in the filename. But if you have an already published page to the server with spaces, you can always use contribute to edit and republish the page. All the links will be working fine.

  • How can I add a line but keep the number I have from tmobile

    How can I add a line but keep the number I have from Tmobile

    Hi, Janice!
    I'm just guessing, but I imagine you'd get your question answered faster in the AE forum.

  • When I view the summary of content on my iphone5, the status bar at the bottom to the iTunes window shows I have 3.90 Gb's of "other".  What is that about and how can I free up that space?

    when I view the summary of content on my iphone5, the status bar at the bottom to the iTunes window shows I have 3.90 Gb's of "other".  What is that about and how can I free up that space? 

    I simply restored my iPhone from most recent  iCloud  backup.  Poof. Good to go!!!

Maybe you are looking for

  • PO for Finished Goods with Tax Code - Inventorise

    Hi All, Our Client is procuring Finished Goods from Domestic Vendor & Excise Duty is paid to the Vendor for that i am defining the tax code in PO. Over here For the Finished Good in Tax Code it is not capturing - (Condition Type - JMO2). I have check

  • How do I save.cur in Photoshop CC?

    How do I save.cur in Photoshop CC?

  • When setting up Hyperlink in Powerpoint not able to see folder or files which I want to link

    Lately after upgrading to the latest OS X Yosemite on my 13" Macbook Pro when setting up Hyperlink in Mac version of Microsoft Powerpoint it will not show the folder or files which I was trying to link - A blank white screen except the showing Favour

  • Execution time in microseconds

    Hi, Can someone tell me what should be the ideal execution time of a program in microseconds. My program consists of 2586 lines and has almost around 10 subroutines and some 10 function modules. Could you suggest me how the execution time is determin

  • Mac Mini 10.9.2 and Macbook Air 10.9.2 WiFi SLOW!

    So I have tried and tried and tried, to no avail, to solve the super slow connectivity problems on both my Mac Mini and MacBook Air (both running updated 10.9.2). I have bluetooth disabled on both. I have deleted the "NetworkInterfaces.plist" and "Pr