When -ve scale in number datatype is used??????????

dear friends,
in the number datatype we specify precision and scale
limit of precision is 1-38 & scale is -64 to 127 if i m right
so i wll like 2 know when & how -ve scale value is used for data design
also plz tell me how 2 declare col if expected values 2 b entered in it r like 0.0000078 etc.
waiting for reply
thanking you
ganesh

Perhaps the following will help
SQL> create table test1 (
  2  a number(5,0),
  3  b number(5,1),
  4  c number(5,2),
  5  d number(5,-1),
  6  e number(5,-2)
  7  );
Table created.
SQL> insert into test1 values (1.234, 1.234, 1.234, 1.234, 1.234);
1 row created.
SQL> insert into test1 values (12.34, 12.34, 12.34, 12.34, 12.34);
1 row created.
SQL> insert into test1 values (123.4, 123.4, 123.4, 123.4, 123.4);
1 row created.
SQL> insert into test1 values (.1234, .1234, .1234, .1234, .1234);
1 row created.
SQL> insert into test1 values (.01234, .01234, .01234, .01234, .01234);
1 row created.
SQL> select * from test1
  2  ;
         A          B          C          D          E
         1        1.2       1.23          0          0
        12       12.3      12.34         10          0
       123      123.4      123.4        120        100
         0         .1        .12          0          0
         0          0        .01          0          0
SQL>

Similar Messages

  • When drag current slide number not getting using this variable containerMC.rdinfoCurrentSlide;

    Hi
    I have made the simulation using Captivate 4 and published the project in Flash Player 8. This swf file, I have loaded in the flash and I have made my custom progress bar in flash 8 for it. When I drag rapidly, some time, I not getting the current slide number using this variable containerMC.rdinfoCurrentSlide;
    Do you have any idea why this is happing

    Hi Ravi,
    to change the title dynamically, you need to redefine the Methode:
    IF_BSP_WD_HISTORY_STATE_DESCR~GET_STATE_DESCRIPTION in your main component overview.
    go through this code and modify as per your requirement.
    DATA lv_bp_number TYPE string.
       DATA: lr_cucobupa    TYPE REF TO cl_crmcmp_b_cucobupa_impl.
       TRY .
           lr_cucobupa ?= get_custom_controller( if_iccmp_global_controller_con=>cucobp ).
         CATCH cx_sy_move_cast_error.
           RETURN.
       ENDTRY.
       description = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_IC_APPL/IDENTIFY_CUSTOMER' ).
       IF lr_cucobupa->is_bp_search_done( ) EQ abap_true.
         lv_bp_number = lr_cucobupa->typed_context->customers->get_s_struct( attribute_path ='STRUCT.BP_NUMBER' component = 'BP_NUMBER') .
         IF lv_bp_number IS NOT INITIAL.
           CONCATENATE lv_bp_number ')' INTO lv_bp_number.
           CONCATENATE description '(ID:' lv_bp_number INTO description SEPARATED BY space.
         ENDIF.
       ENDIF.
    Thanks & Regards,
    Srinivas

  • Precision and Scale in NUMBER datatype

    In oracle, if you want to store a number like 892.34, you need to declare the NUMBER type like
    number(5,2)Here 5 stands for the total number of digits including the numbers after the decimal point.
    2 stands the number of digits to the right of the decimal.
    Isn't this confusing? Can't they just make the syntax like
    number(3,2)where 3 is the number of digits from left till the decimal and 2 is the number of digits after the decimal.

    create table t ( n number( 6, 5 ) ) ;
    alter table t add constraint c check ( n between 0.00001 and 0.1 ) ;
    invalid value will throw
    SQL Error: ORA-02290: check constraint (SYS.C) violated
    *Cause:    The values being inserted do not satisfy the named check          
    *Action:   do not insert values that violate the constraint.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Using number datatype for date column

    Hi
    Is there a side effect for using "number" datatype for "date" column?
    If so, what is the disadvantage?
    Many thanks

    Hi,
    Ora_83 wrote:
    Hi
    Is there a side effect for using "number" datatype for "date" column?
    If so, what is the disadvantage?Yes, there's a definite disadvantage.
    Oracle provides date arithmetic and a number of functions for manipulating DATEs. None of them work with numbers.
    For example,
    SELECT    TRUNC (order_date, 'MONTH')     AS order_month
    ,       AVG (ship_date - order_date)     AS avg_delay
    FROM       orders
    GROUP BY  TRUNC (order_date, 'MONTH')
    ;order_month involves a DATE function; it's pretty easy to find the month that conatins order_date.
    avg_delay involves date arithmetic. It's extrememly easy to find how much the time passed between order_date and ship_date.
    Depending on how you code dates as numbers, doing either one of the above may be just as easy, but doing the other will be very difficult. You'll waste a lot of effort converting the NUMBERs to real DATEs whenever you need to manipulate them.
    Validation can be very difficult for NUMBERs, also.
    Watch this forum. It's a rare day when there's not some question about how to get around a problem caused by storing dates in a NUMBER (or VARCHAR2) column. Don't add to that. Always use DATE columns for dates.

  • How can I activate an old version of Photoshop that I've loaded on my new tablet? The web activation doesn't work, and when I call the number, it says it's not being used anymore. Meanwhile, I'm down to 13 days till it stops working due to not being activ

    How can I activate an old version of Photoshop that I've loaded on my new tablet? The web activation doesn't work, and when I call the number, it says it's not being used anymore. Meanwhile, I'm down to 13 days till it stops working due to not being activated. HELP?  I really need to continue using this product for my home business.It works fine not activated but the threat is that it will stop working in 13 more days if I don't get it activated, and none of the activation methods they list seem to work.

    The new serial number is to the right of your chosen download.

  • I recently got my ipod replaced and i have its serial number. now i used to play a game on it which requires me to have its UDID for account transfer so how do i get its UDID when i dont have the ipod now. i have a new one now.

    i recently got my ipod replaced and i have its serial number. now i used to play a game on it which requires me to have its UDID for account transfer so how do i get its UDID when i dont have the ipod now. i have a new one now.

    I would try contacting Apple.
    http://www.apple.com/support/ipodtouch/contact/

  • Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File - Export - Album name with number).

    Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File -> Export -> Album name with number).
    Exporting a single Event retains the Event name which is what I'd expect. But highlighting more than one event and exporting it renames the images to Events 001.JPG, Event 002.JPG etc.
    I was recently on holidays and had all my events nicely split on Dad's computer but when I went to export it I couldn't retain any of this information. Now I have to replicate this all again on my computer.
    It wasn't possible to export the entire library as the external drive was fat32 format an I didn't want all of it. It would be nice to export a bunch of events to someone and have it retain the name.
    Does anyone have a work around or will this be fixed at some point by Apple?

    Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File -> Export -> Album name with number).
    Exporting a single Event retains the Event name which is what I'd expect. But highlighting more than one event and exporting it renames the images to Events 001.JPG, Event 002.JPG etc.
    I was recently on holidays and had all my events nicely split on Dad's computer but when I went to export it I couldn't retain any of this information. Now I have to replicate this all again on my computer.
    It wasn't possible to export the entire library as the external drive was fat32 format an I didn't want all of it. It would be nice to export a bunch of events to someone and have it retain the name.
    Does anyone have a work around or will this be fixed at some point by Apple?

  • When I check my boot SSD drive using Disk Utility under Mavericks, I often get "Incorrect number of extended attributes" errors.  But if I boot off an external drive and check the same SSD, no errors are reported.  Is this a bug in Mavericks?

    When I check my boot SSD drive using Disk Utility under Mavericks, I often get "Incorrect number of extended attributes" errors.  But if I boot off an external drive and check the same SSD, no errors are reported. 
    This happens not just with the SSD in my Mac Mini, but with another SSD in my MacBook (both now running Mavericks).  So far as I know, all of the kit I am using is in good order (despite the file corruption reports).  So I am beginning to wonder if it could be due to a bug in Mavericks?  Both SSD drives have been formatted to MacOS Extended (journaled) format.  Should I have used a different format, I wonder?
    Has anyone else encountered this issue?
    Does anyone have a solution?
    Or an explanation that might help my investigation of the issue?
    Thanks guys,

    I understand that the Corsair Force 3 is not one of the SSD drives that are supported on Apple Macs. 
    I did try downloading and using Trim Enabler, but the error message came up both when it was off and when it was on.
    I understand that not everyone thinks Trim Enabler is a good program, though there is a new version out now, so I may give it another try.

  • Hey how are you guys listen i have an iphone 4s the one i use with the H20 CARRIEr and i trying to enable the option call forwarding and when i type tho number i go back and i notice to the call forwarding it turning off as soon i back to the main menu ?

    hey how are you guys listen i have an iphone 4s the one i use with the H20 CARRIEr and i trying to enable the option call forwarding and when i type tho number i go back and i notice to the call forwarding it turning off as soon i back to the main menu ?

    There are a lot of posts in the forums today with people having problems with iMessage.   There was also a published outage yesterday, so it's possible there are still some issues that may be impacting you both.
    I would just wait it out - I'm sure it will be sorted out soon.

  • How to convert number datatype to raw datatype for use in data warehouse?

    I am picking up the work of another grad student who assembled the initial data for a data warehouse, mapped out a dimensional dw and then created then initial fact and dimension tables. I am using oracle enterprise 11gR2. The student was new to oracle and used datatypes of NUMBER (without a length - defaulting to number(38) for dimension keys. The dw has 1 fact table and about 20 dimension tables at this point.
    Before refining the dw further, I have to translate all these dimension tables and convert all columns of Number and Number(n) (where n=1-38) to raw datatype with a length. The goal is to compact the size of the dw database significantly. With only a few exceptions every number column is a dimension key or attribute.
    The entire dw db is now sitting in a datapump dmp file. this has to be imported to the db instance and then somehow converted so all occurrences of a number datatype into raw datatypes. BTW, there are other datatypes present such as varchar2 and date.
    I discovered that datapump cannot convert number to raw in an import or export, so the instance tables once loaded using impdp will be the starting point.
    I found there is a utl_raw package delivered with oracle to facilitate using the raw datatype. This has a numbertoraw function. Never used it and am unsure how to incorporate this in the table conversions. I also hope to use OWB capabilities at some point but I have never used it and only know that it has a lot of analytical capabilities. As a preliminary step I have done partial imports and determined the max length of every number column so I can alter the present schema number columns tp be an apporpriate max length for each column in each table.
    Right now I am not sure what the next step is. Any suggestions for the data conversion steps would be appreciated.

    Hi there,
    The post about "Convert Numbers" might help in your case. You might also interested in "Anydata cast" or transformations.
    Thanks,

  • I have read the thread about turning off dialpad sounds when calling a number. I used to always be able to do this on my 4S but not so since the latest software on the 5. Keyboard clicks are turned off and still have dialpad sound. I've NEVER had to mute.

    I have read the thread about turning off dialpad sounds when calling a number. I used to always be able to do this on my 4S but not so since the latest software on the 5. Keyboard clicks are turned off and still have dialpad sound. I've NEVER had to mute to dial before.

    I really do not think it is the iPad or your network connection. Other users have reported this very same issue. Try this and see if it works for you - it may not work - but it's easy to try - harmless - and it has worked in the past for others.
    Try signing out of your account and restart your iPad.
    Go to Settings>Store>Apple ID and tap the ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button. Go back to Settings>Store> Apple ID and sign in again.

  • I have recently changed my mobile number, however when I use iMessage my old mobile number is still used. I realised that my old number is still registered to my iTunes account, how do I change this to my new number?

    I have recently changed my mobile number, however when I use iMessage my old mobile number is still used. I realised that my old number is still registered to my iTunes account, how do I change this to my new number

    See if this Link offers any enlightenment...
    Changing Account Information
    http://support.apple.com/kb/HT1918

  • HT1918 What do I enter when askedf or a credit card number but am using paypal account?

    What do I enter when asked for a credit card number but am using paypal account? I do not have credit card.

    only way is to put in your creditcard security code as it request
    here is where / how you find it
    http://www.creditcards.com/credit-card-news/credit-card-verification-numbers-sec urity-code-1282.php

  • I cannot use the Lion up-to-date program! I bought my MBP on June 8 and when entering the serial number says ineligible! Thanks!

    Thats the deal, i am a qualifiyng user for the Up To Date Program, and when entering the serial number of my MBP it says i am ineligible. I already tried with the form that had to be filled up if the direct method didn`t work and it has the same issue. My only possible explanation is that it seems they recently added a date limit for the submission of an order to get Lion free (July 19), which makes me be very disappointed with Apple because in the first communication about the up to date program they listed: "Customers who purchase a qualifying Mac between June 6, 2011 and the date when Lion is available in the Mac App Store will have 30 days from Lion’s official release date to make a request" .
    Please help me, I am from Chile and my sister bought the MBP to me by the Apple Online Store, so I can`t personally go to an Apple Store to explain my problem.
    THANKS!

    Muchas Gracias!
    Pero dejame hacerte otra pregunta... No entiendo porque sale ahora lo de "submit before july 19th" si es que en un principio dijeron que uno tenia 30 dias desde que saliera Lion para los que compraran despues del 6 de Junio. Esa es mi gran angustia en verdad, no me importa esperar, pero me daria mucha rabia haber perdido la oportunidad de descargarlo gratis. Tu llenaste alguna orden o algo similar antes del 19 de Julio? Yo no hice nada parecido, sin embargo cuando me meto a la parte de la garantia con mi serial number me sale que mi MBP esta activo y registrado y todo.
    Disculpa las molestias, y nuevamente muchisimas gracias!
    P.D: No puedo llamar a Apple porque aca en Chile no esta la Apple Store oficial, es un "authorized reseller" y se llama MACONLINE, asi que no se si ellos me puedan ayudar.

  • How to specify precision and scale for a datatype in create procedure statement

    Specifying precision and scale in the datatype when creating a procedure does not work:
    create or replace function SqlTxFunctionTesting(inparam in number(9,2)
    Error(1,48): PLS-00103: Encountered the symbol "(" when expecting one of the following: := . ) , @ % default character The symbol ":=" was substituted for "(" to continue.

    user4928701 wrote:
    Specifying precision and scale in the datatype when creating a procedure does not work:
    create or replace function SqlTxFunctionTesting(inparam in number(9,2)
    Error(1,48): PLS-00103: Encountered the symbol "(" when expecting one of the following: := . ) , @ % default character The symbol ":=" was substituted for "(" to continue.
    And one of the cons in the PL/SQL language in my view.
    The language does not allow parameters to be declared in the fashion you are attempting to. Even declaring a subtype and using that, does not enforce either the precision or scale, on the parameter value passed.
    Even worse - the parameter value can be a different data type all together from the defined parameter type - and a silent and implicit data type conversion will be done at run-time.
    So you can expect run-time errors in your code unit caused by the caller passing invalid values, despite the compiler okaying the call from the caller to your code.
    There are pros and cons to this approach. But if you are from a very strong type language environment like C or Pascal, you tend to see more cons than pros in this specific case.

Maybe you are looking for

  • Adobe Dreamweaver CC 2014 crash on startup!

    I'm using Windows 7 32-bit with 4GB of RAM on an Intel i3 processor with 500GB of storage. I've tried every solution available out there, removing preferences, reinstalling, removing caches, but all didn't work! This was the error I got, hope you guy

  • Should I use shared pool advisor?

    Hi, I am new to the Oracle DB and preparing for the first test of the OCA. If there is a SQL statement that is parsing repeatly, should I use shared pool advisor or SGA advisor? thanks a lot for help

  • HT1379 My iMac is frozen. There is just the spinning wheel.

    My iMacs frozen. It will turn in, and the screen pops up; but there is just the spinning wheel. I can't click in anything. I've tried turning it off and back on, and it didn't work.

  • New Keyboard with KVM

    I have the new Apple Keyboard hooked up to a KVM switch that is Mac compatible but the keyboard will not work. I have tried other Apple Keyboards and it works so is there a way I can make the new keyboard work the the KVM switch?

  • This Entry Already exists in table (Message: 131-183)

    Hia All, I have a very serious problem that's I have been unable to solve on my own. I have a User defined form that is linked to a User defined Object. The Object consists of a Master data and a Master Data Lines table. I am able to add a record wit