Decimals added when to_char is used on number field

Hello Forum Experts,
When I do a to_char to number field sometimes I see decimal values appended.
Can you please explain me about the following:
SQL> select regid,to_char(regid) from region where rownum < 3;
REGID TO_CHAR(REGID)
420080813073001 420080813073001
420080813073001 420080813073001.1
Thanks

Hello Damorgan,
Apologies for insufficient information.
I am using oracle 10g.
SQL> desc m_region;
Name Null?
Type
RegID NOT NULL
NUMBER
REGNAME NUMBER
VARCHAR2(50)
SQL> select regid,to_char(regid) from region where
rownum < 3;
REGID TO_CHAR(REGID)
420080813073001 420080813073001
420080813073001 420080813073001.1The object you described is m_region but the object you queried is region
Btw from the description it looks like you created the column RegID as case-sensitive. If so, you would need to enclose all references to this column in double quotes.

Similar Messages

  • Is there a way of resizing the contents of multiple bounding boxes at the same time using the number fields in the tool bar?

    I'musing cs6 and need to resize an image and two text boxes to a specific pixel width.
    I try selecting all of the boxes and punching in 960 px in the resizing field in the tool bar but only the bounding boxes and not their contents get resized...

    Use the horizontal scale field (and include the units) rather than the width field.

  • When should a subclass have its own fields and when should it use its super

    When should a subclass have its own fields and when should it use its superclass' fields?
    Hi, thank you for reading this post!
    Let me use a specific example to ask my question.
    public class BankAccount {
         private double accountBalance;
         public double getBalance() {
              return this.accountBalance;
    public class SavingsAccount extends BankAccount {
         private double accountBalance;
         public double getBalance() {
              return this.accountBalance;
    }In the bank account example, both BankAccount and SavingsAccount will have a method getBalance(). Therefore, they
    both require a account balance field. My question is since getBalance() for both classes will perform the exact same
    operation, when should I omit declaring the getBalance() method and the accountBalance field in the subclass, and
    when should I include them?
    My own thought is when we never have to instantiate a superclass object (e.g. an abstract class), then we place
    common fields in the abstract superclass and have subclasses access these fields via protected getter/setters to
    access the superclass' fields. This is the principle of reuse.
    But when you do need to instantiate a superclass and the superclass does need to maintain its own fields, then
    I would need to duplicate the accountBalance field and getBalance() method in the subclass.
    Is my thinking correct or incorrect?
    Thank you in advance for your help!
    Eric
    Edited by: er**** on 22-Aug-2011 20:19

    er**** wrote:
    If SavingsAccount inherit BankAccount.getBalance()...getBalance() would return BankAccount's accountBalance. This is NOT the correct result we want.Actually, I think it's precisely what you want.
    We want getBalance() to return BankAccount's accountBalance when we use a BankAccount object, and SavingsAccount's accountBalance when we use a SavingsAccount object.I seriously doubt that. I think you're confusing a BankAccount with a Customer, who can have more than one account.
    In every system I've ever seen, a SavingsAccount IS-A BankAccount - that is to say, it's a genuine subtype. Now, it may well contain other fields ('interest'?) that a normal account wouldn't, but 'balance' ain't one of them.
    Winston

  • How to prevent a number field from getting summed?

    I want to display the # of clients per a certain ID number. (In order to show the duplicate records by setting a filter in the # of clients field). However, this works if the ID number is a text field... but it doesn't work if the ID number is a metric of client... or number. It gets summed up, I get the total, and the % of clients turns to be 1.
    Any ideas?
    Thanks

    Example:
    I have 3 clients:
    Column A
    55
    55
    44
    21
    I want the following output:
    55 | 2
    I get the desired result by adding a second column (# of clients) and creating a filter to get results only if the value is > 2.
    The problem is when "Column A" is a number field. If it is a number field, I get total sum of the records (55+55+44+21) and a value of "1" if I add the # of clients column.
    Is it clearer now? ideas?

  • How to mask SSN number in Identification Number field in BP?

    Hello Gurus,
    We have a requirement to mask the initial 5 digits of SSN number when displayed in the Identification Number field in the Identification tab of BP transaction. What is the best way to go ahead with this enhancement?
    We do not want to encrypt the data at the database level. Just encrypt at while displaying SSN Number on BP transaction.
    If anyone has carried out such enhancement, would appreciate if you can share how you did it?
    Thanks to all in advance,
    Shyamak

    Shyamak,
    This is for CRM -
    Go the PBO of the screen that has identification details. In a suitable PBO module, you can implement and implicit enhancement point and change the data in internal table.
    In my system it is function group BUD0. It would be same in yours as well. Screen is 1520 for me, it may be something else for you. I would have done in module - 'pbo_1520'. Do it at the end of this module. Internal table name GT_BUT0ID
    You need to so something similar in ECC
    Cheers
    Niraj

  • Number 4 is added when typing invitees name in event using iCal 4.0 connect

    The client is a new Snow Leopard MacBook Pro it is setup and working just fine with a OS X 10.5 server. All services (mostly iCal Server) seem to be working just fine. The only issues is when adding invitees in iCal event, a number four appears at the beginning of the name as part of the email address of the invitee. The work around has been to just show the Address panel and drag and drop names into the invitees field and the 4 does not appear but if you just start to type the name the 4 appears. It seems to be part of the look-up that is being done by iCal in the local address book and in the address book on the server.
    The user can see all of the calendars on the server they have permission to and can and and remove events without issue.
    Any help would be greatly appreciated.
    bug, ical, address book, 10.5 server, adding events,

    The client is a new Snow Leopard MacBook Pro it is setup and working just fine with a OS X 10.5 server. All services (mostly iCal Server) seem to be working just fine. The only issues is when adding invitees in iCal event, a number four appears at the beginning of the name as part of the email address of the invitee. The work around has been to just show the Address panel and drag and drop names into the invitees field and the 4 does not appear but if you just start to type the name the 4 appears. It seems to be part of the look-up that is being done by iCal in the local address book and in the address book on the server.
    The user can see all of the calendars on the server they have permission to and can and and remove events without issue.
    Any help would be greatly appreciated.
    bug, ical, address book, 10.5 server, adding events,

  • Telephone Number field when adding a new User - CCM 4.2.1

    Is their a way to automatically populate the telephone number field for a user? BAT does not allow this field to be added to the spreadsheet (phones-users). Thanks.

    BAT Version: 5.2.1
    The DN is for the actual line number of the IP phone, not the telephone number field which is stored with the User infromation. These can be independent; for example, I might make a user's actual DN 40001, but want the telephone number in the CallManager Corp Directory to be 5179840001. So, I can place the E.164 number in the Telephone Number field under the User page in CCM. Then, when a user looks up the number using the Directories button on the IP phone, the full E.164 number shows up for that particular user search instead of the 5-digit number which is helpful for offnet dialing and overlapping dial plans among remote sites.
    So, I am looking for a way to automactically populate the Telephone Number field for each user (not the line number of an actual IP phone).
    Thanks.

  • HI Team, Recently One week back I bought a new iphone 5 from India. They have given me a used mobile which has a different IMEI number when compared to the IMEI number present on the box. Please let me know how to proceed further

    HI Team, Recently One week back I bought a new iphone 5 from India. They have given me a used mobile which has a different IMEI number when compared to the IMEI number present on the box. Please let me know how to proceed further

    When you went back to the place where you purchased this phone, & asked them, what did they say?
    No one here can help you with this, nor can/will Apple. You need to take this up with whoever you purchased this phone from.

  • Help! I received a message on my iPhone that "phone Number Added to iPad4 [NAME of IPAD] is now using [PHONE NUMBER] for FaceTime and iMessage" and it is not my iPad!! What do I do, how do I shut them out??

    Help! I received a message on my iPhone that "phone Number Added to iPad4 [NAME of IPAD] is now using [PHONE NUMBER] for FaceTime and iMessage" and it is not my iPad!! What do I do, how do I shut them out??

    Use a strong password and set up Two Step Verification on your account.
    http://support.apple.com/kb/ht5570

  • I don't know of there is anyone than can fix this age old Apple problem.   Does anyone know how to retrieve things under an old Apple ID when the email used for that account no longer exists? I am trying to update a number of apps that was bought under an

    I don't know of there is anyone than can fix this age old Apple problem.   Does anyone know how to retrieve apps under an old Apple ID when the email used for that account no longer exists &amp; I can't remember the password? After speaking with Apple Acct. Security, I got the security Q right but my birthday was wrong! They wanted the serial number from my phone that was 3 iPhones ago! Seriously??!!
    Any updated way to work around this? No Apple people can correct it.
    Thanks,
    Joe

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (122986)

  • Hi ! i have this new itunes account but when i wanna use this for apps he ask me for a card number but i don't have one .what i supposed to do ?

    Hi ! i have this new itunes account but when i wanna use this for apps he ask me for a card number but i don't have one .what i supposed to do ?

    Hi Mada7ina,
    If you are looking to set up an iTunes Store account without an associated credit card, you may find the following article helpful:
    Apple Support: Creating an iTunes Store, App Store, iBooks Store, and Mac App Store account without a credit card
    http://support.apple.com/kb/ht2534
    Regards,
    - Brenden

  • How can I create accurate decimal dimensions when creating a new document or using the art board in Illustrator CS6? When I type in a number with a decimal, it automatically rounds the number up.

    How can I create accurate decimal dimensions when creating a new document or using the art board in Illustrator CS6? When I type in a number with a decimal, it automatically rounds the number up.

    For my part you are welcome, sdowers.
    Unfortunately, the uncertainty arising from the rounding has been up several times here in this forum.
    I just came to remember a warning that needs to be given:
    The rounding of the representation of a numerical value may be harmless in itself, but if you use it for any operation that changes the value, such as multiplication or whatever, things will go wrong because the operation will be made on the basis of the rounded value instead of the true value. So, as in your first case in post #2, 39.625 rounded to 39.63 will become 79.26 instead of 79.25.

  • I have a new iPhone 5 and receive the following message when texting some people within my contacts.  Message sent using invalid number of digits please resend using 10 digit number or valid short code Msg:2114

    I have a new iPhone 5 and receive the following message when texting some people within my contacts.  Message sent using invalid number of digits please resend using 10 digit number or valid short code Msg:2114. Online I found a discussion that stated i needed to delete contact and re-add. I have done that to no avail. Any ideas?

    I had the same issue with the iPhone 6 and tried everything!  I now understand that at some point I stored a number for a contact without including the area code and sent a text message.  So, to correct the issue, you must literally "erase" all references to the contact, not just the number.  Deleting the contact and entering a new one is not enough because the iPhone stores references to that number in multiple places.  The steps below worked and are very simple:
    1) On the contact screen, delete everything stored for that number.  You can't just edit the contact to fix the problem, so write down or record the info somewhere before you complete this step.  Choose edit and then select DELETE to eliminate the entire contact which means home, work, cell, email address, etc.
    2) Delete the entire string of messages you sent to that number.  That's every single message...
    3) Now delete the entire string of invalid 2114 messages you received after your text(s) failed.
    4) Finaly, remove the contact from FAVORITES if you saved it that way. 
    5) To validate that all this worked, simply go to the keypad or contact screen and enter the number associated with the contact to verify successful removal.  I used the keypad and dialed to confirm.  If the contact number still shows up, you need to go back and recheck your steps.  Trust me, I had to do this a few times.
    Several posts suggested that you should  reset and turn off your phone.  After following these steps, it was not necessary for me to reset or turn off my device. 
    is there a much faster way to achieve the same results?  Probably, but this was safe for an iPhone novice and may help you avoid inadvertently deleting other contacts or replacing factory settings that you need.  

  • Day 3 on Mavericks and still having serious issues with the finder it simply is not working correctly. we have over 1000 files all stored using a number. When searching nothing comes up at all.

    3 Days using Maveriks and still cant find any files using our number system.
    I have tried searching using key words and job numbers but nothing is found or works !!
    Its a big problem
    Steve.

    Hi haha fresh tees,
    Thanks for visiting Apple Support Communities.
    If you're searching in Finder or Spotlight and don't get the results you expect, try reindexing your hard drive using these steps:
    Spotlight: How to re-index folders or volumes
    http://support.apple.com/kb/ht2409
    From the Apple () menu, choose System Preferences.
    Click Spotlight.
    Click the Privacy tab.
    Drag a folder or an entire volume (your hard drive) to the list.
    If prompted for confirmation, click OK.
    Remove the item or volume you just added to the list by clicking it and then clicking the minus ("-") button.
    Close Spotlight preferences.
    Spotlight will re-index the contents of the folder or volume.
    Cheers,
    Jeremy

  • I've been using my cell phone number to imessage from my ipad for a while now, but yesterday I got signed out of I message and when I signed back in, I didn't get the option to use my number, only my email adress. How can I fix that?

    I've been using my cell phone number to imessage from my ipad for a while now, but yesterday I got signed out of I message and when I signed back in, I didn't get the option to use my number, only my email adress. How can I fix that?

    Hey bill.rizzo2,
    Thanks for the question. I understand your phone number is missing on your iPad as an option for iMessage. The following article provides steps to resolve this issue:
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    Phone number missing on iPad or iPod touch
    If your phone number isn't listed on an iPod touch or iPad, follow these steps:
    1. Update to the latest version of iOS.
    2. Verify that you're using the same Apple ID that you're using on your iPhone.
    3. On your iPad or iPod touch, sign out of your Apple ID in the following locations:
        - Settings > Messages > Send & Receive. Tap your Apple ID, then tap Sign Out.
        - Settings > FaceTime. Tap your Apple ID, then tap Sign Out.
    4. Sign in to your Apple ID with FaceTime and iMessage.
    If your phone number still isn't listed, follow these steps:
    1. Sign out of your Apple ID on all iOS devices, including your iPhone, in the following locations:
        - Settings > Messages > Send & Receive. Tap your Apple ID, then tap Sign Out.
        - Settings > FaceTime. Tap your Apple ID, then tap Sign Out.
    2. Sign in to your Apple ID on your iPhone.
    3. When activation is complete, your Apple ID and all verified email addresses should be visible in Settings > Messages > Receive At and Settings > FaceTime.
    4. Sign in to your Apple ID on your other iOS devices.
    Thanks,
    Matt M.

Maybe you are looking for

  • Copy function for sales order

    I want to create a sales return, and use copy with reference to do that. But if the sales order items cate is TAB, then those items cannot be copied, I check the config dosen't find the TAB item for order type, even in the standard, RE to OR, I quest

  • How can I change the apple ID on my iPhone so it is not connected to my iPad?

    How can I change the apple ID on my iPhone so it is not connected to my iPad anymore? My ex has my iPad and he is still getting my imessages even after I have deleted my iCloud account and taken my apple ID off of my messages on the iPhone? Someone p

  • Oracle 11gR2 RAC Vs Linux Version

    Hi Guys Please let me know whether i can start the Oracle 11gR2 RAC Grid installation in RHEL 6 or the higher version. Will i able to download the ASM libs for RHEL 6 n greater version. Thanks.

  • Icons not appearing

    Hi I am trying to deploy to OAS 10g. I have create a jar files containing all my jpg images and have added this to the jini_archive in the configuration option, but the icons are not appearing. Is there anywhere in the 10g OAS directory strucuture I

  • Can I store and email files from my iphone? Is there an app?

    Hi, Sorry you've heard this all before. I'm new to apple discussions. I've seen apps that let you transfer files, but how do I email files from my iphone? Thanks