Dynamically Find out the Integer and Decimal Data Type of a Column

Table: test (INTE number, DECI number(7,2))
Try to dynamically determine the column type.
Using select data_type from user_tab_columns. It only returns NUMBER which does not indicate if the column is an integer or decimal data type.
Is there a way to dynamically determine if a column is integer or decimal type?
Thanks

First of all your column INTE stores not just integers but any franctional numbers too:
SQL> create table test(INTE number, DECI number(7,2))
  2  /
Table created.
SQL> insert
  2    into test
  3    values(
  4           10.99,
  5           10.99
  6          )
  7  /
1 row created.
SQL> select  *
  2    from  test
  3  /
      INTE       DECI
     10.99      10.99
SQL>If you want to declare column as integer you use either NUMBER(n) or INTEGER. And, as others already pointed out, you can check DATA_PRECISION & DATA_SCALE in data dictionary view USER/ALL/DBA_TAB_COLUMNS.
SY.

Similar Messages

  • To find out the min and max memory been used by each parameter under SGA_MA

    Hi,
    Can any please tell me how to find out the min and max memory been used by each parameter under SGA_MAX and SGA_TARGET ? below is the db CRMS65T. If any such script is there please provide me
    SQL> select name from v$database;
    NAME
    CRMS65T
    SQL> show parameter sga
    NAME                                 TYPE        VALUE
    lock_sga                             boolean     FALSE
    pre_page_sga                         boolean     FALSE
    sga_max_size                         big integer 1000M
    sga_target                           big integer 1000MThanks in advance

    Can any please tell me how to find out the min and max memory been used by each parameter under SGA_MAX and SGA_TARGET ? below is the db CRMS65T. If any such script is there please provide meI guess your question is, each memory components of SGA? if so
    SQL> select * from v$sgainfo;
    NAME                                  BYTES RES
    Fixed SGA Size                      2088504 No
    Redo Buffers                       18882560 No
    Buffer Cache Size                 616562688 Yes
    Shared Pool Size                  301989888 Yes
    Large Pool Size                     4194304 Yes
    Java Pool Size                      4194304 Yes
    Streams Pool Size                         0 Yes
    Granule Size                        4194304 No
    Maximum SGA Size                  947912704 No
    Startup overhead in Shared Pool   125829120 No
    Free SGA Memory Available                 0Also check
    SQL> select COMPONENT,CURRENT_SIZE,MIN_SIZE,MAX_SIZE,USER_SPECIFIED_SIZE from v$sga_dynamic_components;
    shared pool                                                         301989888  301989888          0           209715200
    large pool                                                            4194304    4194304          0             4194304
    java pool                                                             4194304    4194304          0             4194304
    streams pool                                                                0          0          0                   0
    DEFAULT buffer cache                                                616562688  616562688          0           603979776
    KEEP buffer cache                                                           0          0          0                   0
    RECYCLE buffer cache                                                        0          0          0                   0
    DEFAULT 2K buffer cache                                                     0          0          0                   0
    DEFAULT 4K buffer cache                                                     0          0          0                   0
    DEFAULT 8K buffer cache                                                     0          0          0                   0
    DEFAULT 16K buffer cache                                                    0          0          0                   0
    DEFAULT 32K buffer cache                                                    0          0          0                   0
    ASM Buffer Cache                                                            0          0          0           603979776
    13 rows selected.
    SQL>Edited by: CKPT on Sep 19, 2011 8:55 AM

  • Need to find out the number of Master data records transfered to the BW

    Hi,
    We need to find out the number of Master data (example -0MAT_PLANT_ATTR) records to be transfered to BW side. This is a delta extract.  We are preparing test scripts to check the master data extract ( full & delta) from ECC6 TO BI 7.0..
    Advance Thanks.

    Hi,
    Goto RSA3 and run that master data extractor in D mode if you want to know the number of records in delta and in F mode if you want to know the Full volume. But make sure that you set data records/calls and the display extr calls numbers so that you get the total number of records.
    The other option is goto the master data source table and look at the number of records in that table. That'll give you an idea of the total number of records in the table.
    One other option is to goto RSA7 , select the delta datasource and hit the display button. You'll get to know the number of entries in the delta queue that way as well.
    Cheers,
    Kedar

  • How can i find out the resolution and accuracy of PXI-6602 module?

    I have a 32 bit  8 channel PXI-6602 counter module.  PXI card is interfaced to PC with MXI-4 link. How can i find out the resolution and accuracy of this system.What is the maximum accuracy and resolution i will get from this system. Because optical signal to cmos conversion signal is given as a input to the counter.

    Hi chandhu,
    Were you referring to the accuracy of the count register or the timing clock? 
    PXI-6602 specifications can be found in the NI 660x Specifications.  The resolution of the count register is, as you’ve noted, 32 bits.  This corresponds to a maximum count value of 4,294,967,295.  As long as all of the edges are in accordance with TTL specifications, the accuracy of the count register is 100%.
    On the other hand, the PXI-6602 baseclock accuracy takes on the baseclock accuracy of the PXI CLK 10 signal.  Again, this is all found in the specifications.
    You may also want to check out the NI 660x User Manual – it contains a lot of details on the operation of these counter/timer devices.
    I hope this helps.  Please post back if you have further questions.
    Ed W.
    Applications Engineer
    National Instruments

  • HT1349 How can i find out the size and length of my playlist?

    How can i find out the size and length of my playlist? Anybody?

    It shows up in iTunes on your computer as seen here:

  • Find out the MIN & MAX of DATE QUARTERWISE

    Hi All ,
    I need to find out the MIN & MAX of DATE for QUARTEWISE by using SQL Only . How we can do it ? if anybody knows Please revert me .
    Thanx in Advance
    Bye

    SQL> select deptno,
    2  to_char(trunc(hiredate,'q'),'YYYY"Q"Q'),
    3  to_char(min(hiredate),'DD.MM') MIN,
    4  to_char(max(hiredate),'DD.MM') MAX
    5  from emp
    6  group by deptno, trunc(hiredate,'q');
        DEPTNO TO_CHA MIN   MAX
            10 1981Q2 09.06 09.06
            10 1981Q4 17.11 17.11
            10 1982Q1 23.01 23.01
            20 1980Q4 17.12 17.12
            20 1981Q2 02.04 02.04
            20 1981Q4 03.12 03.12
            20 1987Q2 19.04 23.05
            30 1981Q1 20.02 22.02
            30 1981Q2 01.05 01.05
            30 1981Q3 08.09 28.09
            30 1981Q4 03.12 03.12

  • How to find out the plants and storage location for a given company code

    hi
    How to find out the plants and storage location for a given company code

    Hi
    Check for Assignem,ent of Plant & compnay code in OX18
    & for Combination of Plant & Storage location in OX09
    The total org structure can be viewed in EC01 - Click on Structure  -> navigation
    & Continue, Click on the Compnay code & the wole structure can be viewed
    Thanks & Regards
    Kishore

  • How can I find out the semester in a date?

    Hello I have this query
    SELECT 1949+rowno_year || lpad(rowno_month, 2, '0') MONTH_ID, to_char(to_date(to_char(1949+rowno_year || lpad(rowno_month, 2, '0')),'YYYYMM' ),'MONTH','NLS_DATE_LANGUAGE = ENGLISH') MONTH_NAME,
    to_char(to_date(to_char(1949+rowno_year || lpad(rowno_month, 2, '0')),'YYYYMM' ),'Q','NLS_DATE_LANGUAGE = ENGLISH') QUARTER_ID,
    FROM dual A,
    (SELECT ROWNUM rowno_year FROM DUAL CONNECT BY LEVEL <= 100) B,
    (SELECT ROWNUM rowno_month FROM DUAL CONNECT BY LEVEL <= 12) c
    How can I find out in which semester the date is?
    And the four_month_period??
    Thanks in advance

    >
    Simply I'm building a date from 1950 until 2050 in this formast (YYYYMM) then for each row I want to find out the Name of the month, the quarter, semester and half-month-period to which it belongs.
    >
    I meant an example where you display 1 or more rows and the your expected values. How am I to know how your definition of semester works, for example?
    C.

  • How to find out the IPS and DS Service Pack and patch levels in windows server.

    Hi,
    I have installed the Information Platform Services 4.0 and Data services 4.0 in windows QA system, now we need to install the same version of IPS & DS  in windows PRD system for this how could we find out the exact version of IPS & DS  ( Service pack and patch levels ) and where we can find the same.
    Many Thanks,
    Sudheer

    Hi Sudheer,
    On a Windows Operating Systems you can check the “Programs and Features” in control panel.You can see a list of both the Name and Version number of SAP BusinessObjects that is installed.
    option 2:
    Open CMC go to Settings. In the properties, you will find the Product Version.
    Please check below SAP notes for more information.
    http://service.sap.com/sap/support/notes/1602088
    Regards,
    Pavan

  • How to find out the primary and failover DNS name

    Hi;
    This sounds very stupid, but could some one please tell me how to find out the name/dns name of the primary and failover server without using the CDS console.
    any help is appreciated

    Is this what you want?
    $ /usr/lib/ldap/ldap_cachemgr -g
    cachemgr configuration:
    server debug level 0
    server log file "/var/ldap/cachemgr.log"
    number of calls to ldapcachemgr 12729
    cachemgr cache data statistics:
    Configuration refresh information:
    Previous refresh time: 2005/08/07 23:54:59
    Next refresh time: 2005/08/08 00:55:00
    Server information:
    Previous refresh time: 2005/08/14 15:15:00
    Next refresh time: 2005/08/15 03:15:00
    server: ldap1.example.com, status: UP
    server: ldap2.example.com, status: UP
    server: ldap3.example.com, status: UP
    Cache data information:
    Maximum cache entries: 256
    Number of cache entries: 0
    Gary

  • How to find out the Datasources  for particular data in R/3

    Hi ,
         I want to retrive the data from R/3 tables  which are  VEKP, INOB ,AUSP , CABN .. these all are ACCOUNTABILITY details...  so, how can i find the  BI  content  DataSources  are available or not...  if available means..
        for these ACCOUNTABILITY details.. i want to  know the BI content  CUBES  and ODS's  and  Datasources...  so, can any one give me the  names of  datasources.. or  cubes..  and how can we find out those names...
    helpfull answers will be highly appriciated..
    regards
    Babu

    The best way to go for this is to check the table RSOSFIELDMAP in BW.
    Put in the values below and you would see which field of R/3 maps to which info object in BW. If  nothing is mapped that means there is no infoobject mapped yet to that field. In this case you need to hunt in the BC or create your own info object.
    Soursystem = your r/3 sourssytem
    version = A
    field = your r/3 field name
    Once you get the datasource name, i am sure you can figure out the corresponding infosource and then the cubes and ODS linked to that infosource. ( right click infosource - - show dataflow)
    Hope this helps.

  • Find out the peaks and check them against a value

    Hi
    I am currently aquiring a bunch of signals (4 to be exact) through a 6120 card. This works as expected.
    Now I'd like to check all 4 signals if any value (up to 80 000 samples / waveform) has it's lowest level above -0,8 V and it's highest level below 0,8 V.
    I tried this with the Express VI (Level and Amplitude Measurements). I check both for the peaks and if one of them (OR) is above/below that value, a Boolean value should change.
    So I have my 1D - Waveform Array as Input  to the Express VI. I then get the Positive/Negative Peak. I wire those to smaller/grater sign. and when I try to wire the two outputs of the smaller/greater signs to an "OR", LabView won't let me
    It says: Source is Dynamic Data, Sink is Boolean.
    What am I doing wrong ?

    It would have worked, if you had converted the dynamic-data to a double before you pass it to the > / < operators.
    If you pass two different data types to a function, the "lower" is converted to the higher (e.g.: sgl -> dbl) which is why the dynamic data is passed on to the or-operator.
    Just see this example.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    CompareMaxMin.vi ‏169 KB

  • How to find out the tablename and column name

    Hi,
    I have inserted a value (say 'I am here') in a table. but i don't know which is getting inserted this value.
    Now i want to know which table and colums has this value (I am here). How to find out as without knowing the table name.
    Is there any option to get the tablename and colum??.
    Please help me.
    thanks.

    Does nobody document their code anymore?
    See my response Re: How to find out a tablename for one possible solution.
    HTH
    John

  • I cannot update an app because I used a different ID when I purchased it and I have no record of it. How can I find out the ID and password

    I cannot update an App because I used  an ID and password  to purchase the APP that I no longer can retrieve. Is there anyway that I can find out that information ?

    Try here > Associating and verifying email addresses with your Apple ID
    And here > Is there a way to find my Apple ID Name if I can't remember it?
    Frequently Asked Questions About Apple ID

  • How to find out the object and tables that belong to it

    Do you know how to find out which tables belong to which object in trans. BD66, I have a CABN table but i donot the object name so how i can find out that??

    Hi,
    Wht object u r taking about .if it's a transport object,
    Go to Utilities -> Versions -> Version Mgt ->
    The latest one which is active, is the one u have to transport .
    Rgds ,
    J
    Do Award pts by cliking the left-hand side of this info.

Maybe you are looking for

  • Add custom content before E-Mail signature. In outlook add-in c# développment

    Hello, I have make an add-in 2013 for outlook project in C#. I upload on a server some file and put in the mail body the link to them. But i want to add this 'link part' before the E-mail Signature. How could I do that? I have healready see code that

  • Aperture 3.1 can't find/see my Canon RAW files when importing

    Aperture 3.1 cannot see my CANON RAW files when doing import!!! Do I really have to re-reference each image in the library if I have moved the library to a different volume? Images are not moved to the library, only referenced.

  • Scaling X - axis in a Line Time series chart

    I have a QTD graph built using RSUM function on a measure for year and previous year . Plotting a X- Y axis plot with both the measures on Y-axis vs calendar days - ( Oct - Nov - Dec ) on X-axis. Requirement is with out adding any filters to the repo

  • Where can I get 5 CD installation of download of Solaris 10?

    Hello folks, my host have CD rom, not DVD. I am running into the problem of being able to install OS from it since I can't find anywhere this media. Sun-->Oracle does not have CD installation as downloadable option.

  • The page can't be displayed error on most websites

    Recently I've been experiencing difficulties with my web browser (Internet Explorer 10) in which it doesn't display most websites. It can do google.co.uk but not google.com. This also happens when I try it in Google Chrome, I get this error: "We coul