Number / Integer data type

Hi,
How do we remove comma in Number / Integer type field. Is there any setting available or we need to use default field valeu with function.
Sundar

Shilei is correct. If you do not want a comma use a text field.
Edited by: bobb on Mar 5, 2009 7:33 PM

Similar Messages

  • Validation on Integer data type attribute

    Hi,
    Working on jdev 11.1.1.3.0
    I have to do validation on integer data type like, it should not allow 13.20(only single digit numbers.).
    I am doing validation on AMImpl and converting the int into string
    String per=Row.getPer().toString();// here if user enter 13.20, then per containing only 13 so its not going to inside if.
    if(StringUtils.contains(per,"."))
    return false;
    Even i have written regular expression on my field but its working
    can any one help me.

    Hi,
    Why don't you use the af:convertNumber in your tag?
    Something like that:
    <af:inputText>
    <af:convertNumber>
    </af:inputText>
    Doc: http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_convertNumber.html
    Regards,

  • Last 6 months of data based on date feild that is an integer data type

    Hi Folks
    I have a date column called 'YYYYMM' that is an Integer data type in YYYYMM format (eg. 201309). I want to return records from the last 6 months. 
    If the column was in a date format I could use something like 
    [YYYYMM] >DATEADD(M, -6, CURRENT_TIMESTAMP)
    Therefore I assume I need to do a CONVERSION of INT into a date format with something like
    CONVERT (DATE, [YYYYMM]
    But I get the message  "Explicit conversion from data type int to date is not allowed"
    Can someone suggested a work around?
    Many thanks Steve

    another way is this
    SELECT *
    FROM Table
    WHERE DATEADD(mm,(dateintfield%100)-1,DATEADD(yy,(dateintfield/100) -1900,0)) >=DATEADD(mm,DATEDIFF(mm,0,GETDATE())-6,0)AND DATEADD(mm,(dateintfield%100)-1,DATEADD(yy,(dateintfield/100) -1900,0)) < DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • The key columns of the country measure group attribute do not match in either number or data types to the key columns of the source attribute

    I have a country dimension which is used in 5 cubes. Now I want to change 'key column' property of the country attribute. Whenever I do this, I get an error as "The key columns of the country measure group attribute do not match in either number or
    data types to the key columns of the source attribute". I dont understand what this error is about.
    Can someone please help? Thanks in advance.
    -Regards,
    Raj Patil

    sounds like you need to verify your dimensional usage tab to verify the relationships between dim and fact on the measure group. 
    Hi Talktorajpatil,
    As Jon said, you can verify the relationships between dim and fact on the measure group on the dimensional usage tab. Use this section to define how you "join" your measure groups to your dimensions.  There may be a Dimension-Measure Group relationship
    that is defined using the wrong attributes and you'll need to select the correct attributes to link the Dimensions to the measure groups. Here are some similar thread for your reference.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/74203b66-8a71-4681-8e47-8f99cce87b3d/error-on-the-measure-group-which-do-not-match-the-data-type-of-the-key-column?forum=sqlanalysisservices
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/2421058d-fd4a-44b8-8c7c-b0b349bbef2d/measure-group-attribute-key-column-does-not-match-source-attribute?forum=sqlanalysisservices
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • OWB 10 -  Integer data type

    Hi,
    I am using OWB 10.1.0.2 and using the file module. In the flat file structure i want to pick the data type -
    INTEGER(8) however it has no Integer type but has INTEGER EXTERNAL.
    I want to use INTEGER(8) how can I use it. OWB dows have that type in file mod.
    Thanks
    HB

    No Integer & Integer External are not the SAME.
    INTEGER specifies binary data, while INTEGER EXTERNAL specifies character data that represents a number. I am loading Large Binary data.
    So basically, INTEGER(n) is full-word binary integer, where n is an optionally supplied length of 1, 2, 4, or 8. Other imp thing is by default, INTEGER is treated as a SIGNED quantity
    When using the INTEGER(8) - it instruct SQL*Loader to process the integers as 8-byte quantities, as oppose to the default 4-byte quantities. Integer(8) support was introduced in Oracle 9i.
    So basically I need - INTEGER(8) to process large binary integers I8 and I don't see them in OWB 10.
    Any help is appreciated.
    Thanks
    Harman

  • JDBC TYPES.Integer Data Type--Oracle seems useless

    I have a set of applications that work on every database I've
    tried it on except Orocle. They rely very heavily on making a
    query and then grabbing the correct data type (e.g., getInt() vs.
    getString()) based on the int value returned in the
    ResultSetMetaData. The problem here is that the type returned
    for Integer columns, however, is always NUMBER and therefore
    always has a decimal place and gets automatically converted into
    a double. This wreaks havoc on all of the classes which assume
    that certain columns will be int's (e.g., primary keys). Also,
    since I'm programming servlets, I am often throwing the values
    into forms where the values will be retrieved and have an
    Integer.parseInt() run on them--Integer.parseInt() will not work
    on Strings with decimal points.
    I realize why Oracle does this (because an integer is a number
    with no decimals) and what the workaround is (use a
    NumberFormatter instead of Integer.parseInt() or use Oracle's
    extensions to preset the datatype). But why should I have to
    hack up my code just because Oracle programmers can't figure out
    how to get its JDBC drivers to return the proper Type code?
    Is there any other w
    null

    I have a set of applications that work on every database I've
    tried it on except Orocle. They rely very heavily on making a
    query and then grabbing the correct data type (e.g., getInt() vs.
    getString()) based on the int value returned in the
    ResultSetMetaData. The problem here is that the type returned
    for Integer columns, however, is always NUMBER and therefore
    always has a decimal place and gets automatically converted into
    a double. This wreaks havoc on all of the classes which assume
    that certain columns will be int's (e.g., primary keys). Also,
    since I'm programming servlets, I am often throwing the values
    into forms where the values will be retrieved and have an
    Integer.parseInt() run on them--Integer.parseInt() will not work
    on Strings with decimal points.
    I realize why Oracle does this (because an integer is a number
    with no decimals) and what the workaround is (use a
    NumberFormatter instead of Integer.parseInt() or use Oracle's
    extensions to preset the datatype). But why should I have to
    hack up my code just because Oracle programmers can't figure out
    how to get its JDBC drivers to return the proper Type code?
    Is there any other w
    null

  • Error;invaild number. different data type: how to insert

    In testtable, ID(number(12), amount(number(12))
    Now I want to insert the following record. I got error,a invalid number .
    insert into testtable(id,amount) values('111','9,000.00');
    I think data type is different. amount is number type but '9,000.00' is varchar2.
    How can i insert '9,000.00' to number data type?
    I do insert to_number('9,000.00'). It doesn't work.
    Would you help me for this problem.

    as amount is a number field it will only take data of type number only.so if ue data is not number type u need to convert it to number and insert it.
    however u can select it in the same format(original),using something like this:
    SQL> SELECT ename employee, TO_CHAR(sal, '99,990.99') from emp;
    EMPLOYEE TO_CHAR(SA
    SMITH 800.00
    ALLEN 1,600.00
    WARD 1,250.00
    JONES 2,975.00
    MARTIN 1,250.00
    BLAKE 2,850.00
    CLARK 2,450.00
    SCOTT 3,000.00
    KING 5,000.00
    TURNER 1,500.00
    ADAMS 1,100.00
    EMPLOYEE TO_CHAR(SA
    JAMES 950.00
    FORD 3,000.00
    MILLER 1,300.00
    14 rows selected.

  • INTEGER DATA TYPE+PAL

    Query 1)I am creating table in oracle 8.1.7 as
    Create table tablea
    (fielda INTEGER NULL
    Can anybody tell me what is max number of digits that can be stored in fielda.?
    I mean INTEGER stands for what in terms of NUMBER datatype.
    Query 2)I would be planning to migrate to oracle 9.2
    So do I have to make anychange in Scripts for creating new fields of integer datatype.
    Say after migrating to oracle 9.2
    I want to add the New field fieldb of same type as fielda
    So if I put as
    Alter table tablea
    Add fieldb INTEGER NULL
    is it ok ??
    or do i have to change something to NUMBER(p) to make it as same type as of fielda
    Someone suggested me NUMBER is of different type in Oracle 9.2 than in 8.1.7
    I am not 100% sure if anybody has faced such problem your suggestion is appreciated.
    Please help...
    Regards
    Mahesh

    This is how INTEGER is defined in Oracle:
    subtype INTEGER is NUMBER(38,0);
    So, it is nothing but a NUMBER datatype with the maximum precision.

  • Best practice for phone number column data type

    Hi,
    I hope I have posted this in the right forum, if not just notify me and i will remove it to the correct area.
    What would be considered best practice for storing a phone number.
    Number of Varchar2.
    Ben

    Well I was thinking that Number would have the following disadvantages,
    1. Users entering phone numbers into a form may be tempted to pre format with spaces, thereby throwing up an error.
    2. Mobile phone numbers may have leading zeros
    3. Calculations are not carried out on phone numbers.
    I was leaning towards a varchar2 type.
    Ben

  • INTEGER DATA TYPE and Numeric Oracle URGENT Help needed

    Hello does any body knows if i run this statement of create table in oracle 9.2
    what is maximum number of digit the test_num can stores....
    create table test
    test_num INTEGER NOT NULL
    I have to reply to my client urgently..
    Regards
    Mahesh
    Ramnarayan123

    All the Oracle reference manuals are on-line at <http://tahiti.oracle.com>. A quick search on "INTEGER" will reveal the answer (38 decimal digits).
    Justin

  • Integer Data Type not displayed correctly in Interactive Report

    Hi,
    When creating a report using BI Publisher 11.1.1.6.2 it appears that any of my fields that contain Integer values (regardless of the order in which the field is displayed) do not correctly display - instead they are displayed as NULLs with the occasional value in a field.
    This is only apparent when displaying the report using the Interactive viewer - when selecting another method (i.e. HTML, Excel etc) they appear correctly.
    Has anyone come across this before?
    Thanks

    Hi Craig
    Did you find a solution for this issue? we have same exact issue. Please let me know
    Thanks
    slokam

  • How to handle NUMBER data type of SQL

    Hello All,
    I have to call an Oracle store procedure developed by 3rd party, it has once of the input parameter as NUMBER.
    Since NUMBER SQL data type is not support by PI 7.0 (http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/7b72b2fde93673e10000000a114a6b/content.htm),
    when I am execute this scenario, it through an error for - Unsupported parameter type 'NUMBER'.
    I cannot change the store procedure or any thing in Oracle.
    I gone through some thread but did not find any help. NUMBER type for Oracle SP
    Please let me know if there any work around.
    Thanks in Advance.
    Pradeep

    Thanks for your reply.
    I cannot customize the stored procedure parameter to NUMERIC, as this is standard SP is from a product.
    Below is the final XML generated with error on PALC and PREL parameter for NUMBER, ideally it should be
    <PALC isInput="true" type="NUMBER"/>
    <PREL isInput="true" type="NUMBER"/>
    <Statement xmlns="">
    <LSA_REL_DM action="EXECUTE">
        <table>ACQDR.lsa_rel_dm</table>
          <PPROJECTID isInput="true" type="VARCHAR">85LJ24210</PPROJECTID>
          <PDMC isInput="true" type="VARCHAR">LJ200-A-J00-00-00-00-00AAA-00K-AA</PDMC>
          <PLCN isInput="true" type="VARCHAR"/>
          <PALC isInput="true"/>     
          <PTYPE isInput="true" type="CHAR"/>
          <PSOURCE_CODE isInput="true" type="VARCHAR"/>
          <PREL isInput="true"/>     
          <PRFU isInput="true" type="VARCHAR"/>
          <POBJECT isInput="true" type="BLOB">&lt;dmodule xsi:noNamespaceSchemaLocation="C:/Projects/S1000D/Document/schema/TIR_Parts_Vendors.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;identAndStatusSection&gt;&lt;dmAddress&gt;&lt;dmIdent&gt;&lt;dmCode modelIdentCode="LJ200" systemDiffCode="A" systemCode="J00" subSystemCode="00" subSubSystemCode="00" assyCode="00" disassyCode="00" disassyCodeVariant="AAA" infoCode="00K" infoCodeVariant="A" itemLocationCode="A"/&gt;&lt;language languageIsoCode="US" countryIsoCode="sx"/&gt;&lt;issueInfo issueNumber="0" inWork="1"/&gt;&lt;/dmIdent&gt;&lt;dmAddressItems&gt;&lt;issueDate year="20111107" month="20111107" day="20111107"/&gt;&lt;dmTitle&gt;&lt;techName&gt;General&lt;/techName&gt;&lt;infoName&gt;Organizations technical information repository&lt;/infoName&gt;&lt;/dmTitle&gt;&lt;/dmAddressItems&gt;&lt;/dmAddress&gt;&lt;dmStatus&gt;&lt;security securityClassification="01"/&gt;&lt;responsiblePartnerCompany enterpriseCode="24210"&gt;&lt;enterpriseName&gt;Learjet&lt;/enterpriseName&gt;&lt;/responsiblePartnerCompany&gt;&lt;originator enterpriseCode="24210"&gt;&lt;enterpriseName&gt;Learjet&lt;/enterpriseName&gt;&lt;/originator&gt;&lt;applicCrossRefTableRef&gt;&lt;dmRef&gt;&lt;dmRefIdent&gt;&lt;dmCode modelIdentCode="LJ200" systemDiffCode="A" systemCode="J00" subSystemCode="0" subSubSystemCode="0" assyCode="00" disassyCode="00" disassyCodeVariant="A" infoCode="00W" infoCodeVariant="A" itemLocationCode="A"/&gt;&lt;/dmRefIdent&gt;&lt;/dmRef&gt;&lt;/applicCrossRefTableRef&gt;&lt;brexDmRef&gt;&lt;dmRef&gt;&lt;dmRefIdent&gt;&lt;dmCode modelIdentCode="LJ200" systemDiffCode="A" systemCode="J00" subSystemCode="0" subSubSystemCode="0" assyCode="00" disassyCode="00" disassyCodeVariant="A" infoCode="022" infoCodeVariant="B" itemLocationCode="D"/&gt;&lt;/dmRefIdent&gt;&lt;/dmRef&gt;&lt;/brexDmRef&gt;&lt;/dmStatus&gt;&lt;/identAndStatusSection&gt;&lt;content&gt;&lt;techRepository&gt;&lt;partRepository/&gt;&lt;/techRepository&gt;&lt;/content&gt;&lt;/dmodule&gt;</POBJECT>
            <PSTATUS isInput="true" type="CHAR">D</PSTATUS>
            <PISSTYPE isInput="true" type="CHAR"/>
            <POBJECT_CLASS isInput="true" type="VARCHAR">XML</POBJECT_CLASS>
        </LSA_REL_DM>
    </Statement>
    Thanks in Advance

  • User define function - data type integer

    All,
    I am defining a udf. I can not select integer data type for an argument.
    did anyone facer this issue.
    reg

    in UDF all the parameters are of the type String only. You can not change them. This is becaue, XI interanlly represents them as strings and maintains the Qs for contexts etc. So you have to type cast them manually to integers inside the UDF.
    VJ

  • Numeric Data Types

    What are the numeric data types in Oracle? I created the following table:
    CREATE TABLE CONTRACT (
    CONTRACT_ID INTEGER NOT NULL,
    QUOTE_ID LONG,
    BOOK_RATE NUMBER,
    IBTSS_CONTRACT_NUM VARCHAR2(20)
    But in the Object Browser, the data type of CONTRACT_ID becomes NUMBER which can accept numbers such as 123.25. This is not my intention. I thought LONG is not an acceptable data type but it actually works and the data type of QUOTE_ID shown in the Object Browser is correctly LONG. However, both LONG and INTEGER behave like NUMBER because I can insert values such as 123.56 into columns CONTRACT_ID and QUOTE_ID.
    So my questions are
    1. What are the supported numeric data types in Oracle?
    2. Are we supposed to use INTEGER or LONG at all since they do not behave as expected? Are we supposed to always use NUMBER(n) instead?
    Thanks.
    Edited by: user10896541 on Apr 23, 2009 2:43 PM

    LONG in Oracle is not an integer data type. LONG is a depricated data type that was designed to store text more than 4k in length. Oracle has been asking folks to stop using LONG and use CLOB (or BLOB for binary data) since 8.1.5.
    INTEGER maps to NUMBER(38) which does not allow decimal values. You might be confused because Oracle truncates values if you insert them into a column that has less precision than the column allows
    SQL> create table x (
      2    col1 integer
      3  );
    Table created.
    SQL> desc x;
    Name                                      Null?    Type
    COL1                                               NUMBER(38)
    SQL> insert into x values( 1 );
    1 row created.
    SQL> insert into x values( 1.25 );
    1 row created.
    SQL> select * from x;
          COL1
             1
             1
    SQL>Justin

  • Getting an "Integer" logical type to stick

    I created my identity-style primary keys in the logical model as logical type "Integer". On the relational model it's still "Integer", and for Oracle it created them as "number(38,0)" (or as SQL Developer tells me, "number(*,0)"). This is a good result, and I like it. My trouble is how to compare my model to a created database without it reporting that the data types are different and wanting to recreate the tables.
    Maybe it's a problem with how I'm doing the comparison, so I'll spell out my steps:
    1) File->Import->Data Dictionary
    2) I pick my connection, and [Next >].
    3) I pick my schema, click "Swap Target Model" to on, and leave the "Import To" as my relational model and "Oracle Database 11g" as the database. [Next >]
    4) My tables are already clicked, so I leave them. [Next >]
    5) It reports that I have changes in my tables, and there are three in the list:
    a) The "Data Type" for the column in question in the model is "INTEGER", and the table is "NUMBER". It's checkmarked as a difference.
    b) The "Data Type Kind" for the model is "Logical Type(Integer)", and the table is "Logical Type(NUMERIC)". (This one isn't checkmarked because I turned off the "Compare Option" for "Use 'Data Type Kind' Property".)
    c) Under "Indexes", it wants "To Drop" my primary key (index). That's odd, because it still lists the primary key under "PK and UK Constraints". It's not really a problem and I just ignore it, but I wonder if it's related to the data type issue.
    If I do "DDL Preview", it's (leaving out some of the storage and logging options):
    ALTER TABLE CAM.ADDRESSES DROP CONSTRAINT ADDRESSES_PK CASCADE ;
    DROP INDEX CAM.ADDRESSES_PK
    DROP TRIGGER CAM.ADDRESSES_ROW_ID_TRG
    ALTER TABLE CAM.ADDRESSES RENAME TO bcp_ADDRESSES
    CREATE TABLE CAM.ADDRESSES
         ROW_ID INTEGER  NOT NULL ,
    INSERT INTO CAM.ADDRESSES
        (ROW_ID ,[...] )
    SELECT
        ROW_ID , [...]
    FROM
        bcp_ADDRESSES
    CREATE UNIQUE INDEX CAM.ADDRESSES_PK ON CAM.ADDRESSES
         ROW_ID ASC
    ALTER TABLE CAM.ADDRESSES
        ADD CONSTRAINT ADDRESSES_PK PRIMARY KEY ( ROW_ID  )
        USING INDEX CAM.ADDRESSES_PK ;So it looks like it'd create the column as an "INTEGER" again, so on the next attempt I'd be back where I started.
    In the "Types Administration" I tried changing the logical type mapping to "number(38,0)" and then "number(38)", but that didn't help. I didn't write down how it reported the difference -- I think it was that "number(38)" was different from "number". If I changed the type mapping to "number", then it stopped reporting the data type as a difference -- but then it wanted to create the columns as "number", which has a scale, and I'd rather not have one.
    Any suggestions on how to get it to leave this alone?
    (Version 3.3.0.747. I think that when I was running 3.1.4, it just wanted to alter column addresses modify (row_id integer), which was annoying but I could just delete all of those lines. Now that it wants to recreate the table altogether, it's harder to work around. But maybe the table recreation is due to the index business, which it didn't bother me about before.)

    Thanks for the quick reply and about the storage properties. I'll check into that.
    About Integer data type - it won't report difference if logical type integer is mapped to Integer data type or to Number(38). We'll improve it to cover mapping to Number as well.I just did some experiments and learned something about Oracle today. If you create a column as type "INTEGER" and look at the table in SQL Developer (3.0.04)'s Schema Browser's "Columns" tab, it says that the column is of type "NUMBER(38,0)", but it isn't. The USER_TAB_COLUMNS view says that the DATA_PRECISION is null, not 38, with DATA_SCALE 0. That explains why the Modeler sees the model's "INTEGER" or "NUMBER(38)" is different from the database column's precision-less data type. If the database column is explicitly created as a "NUMBER(38,0)", and USER_TAB_COLUMNS.DATA_PRECISION is really 38, the Modeler reports that as type "NUMBER(38)", which is sees as the same as the model's "INTEGER". Very interesting.

Maybe you are looking for

  • Parsing itunes:duration using xpath

    Hi, I have my xml structured like this <?xml version="1.0" encoding="utf-8"?> <rss xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd" version="2.0"> <channel> <title>938LIVE Budget 2007</title> <itunes:author>938LIVE </itunes:author> <link>htt

  • Schedule SAP Web Reports

    Dear Am using SAP Business Objects 4.0 My scenario Is , I want to create Schedule , If the Web reports have data, i want to send it to User A,B,C But if the Web reports have no data , I want to send it to User D And E In other way How can i create Sc

  • Drill filers in Webi

    In XIR2 i have a linking reports i have couple of drop downs in the drill analysis bar iam passing some "All" as well my question is in the Drill in the Month variable if i select "March" able to pass to child it generates based on the parameters but

  • Why OPatch 1.0.0.0.57 needed to apply july2007 CPU patch on oracle 9.2?

    what could be the reason to upgrade OPatch utility from older to 1.0.0.0.57 for applying July2007 CPU patch on 9.2

  • Initramfs unpacking failed on boot almost EVERY TIME

    My sister has been bugging me about this for weeks... Rebooting from the live CD and redoing 'mkinitcpio -p linux' does work, but not all the time. This is a really annoying issue and I wish that it would be fixed! Can anyone help me? http://i2.minus