Column / field definition

Hi Everyone,
I am having some sort of argument with data management where I work and would like some opinions or maybe I am missing something new or not in Oracle database design.
I have a field which can only contains numbers, such as a telephone number I guess. Data management is forcing me to define the field as a number within the Oracle database because the field can only contains digits.
However, unless I am missing something, Oracle will store both numbers 00371 and 371 as 371 in the database. When I display the value on the screen, the number will always show up as 371 unless I put a format mask to show leading zeros which will then fill the number with leading zeros up to the maximum length for the field.
But to the user, numbers 371, 0371, 00371 are all different "file" numbers. Therefore, they would like to be able to enter and see numbers 371, 0371 or 00371 when they enter it so that they can relate it to another file system they are accessing.
The only solution I can see is to define the column in the database as character and not number. Unless Oracle can store and see numbers 371, 0371 and 00371 as different numbers ? Is that the case (which I really doubt unless I am missing a new concept on numbers) ?
Even then, Oracle Forms seem to always consider 00371, 0371 and 371 as the same number.
What would you do ?
The question may sound obvious but it doesn't seem to the DM group here.
Thank you for your opinions.

Just because a data item consists of only numeric digits does not make it a number. A number is a data item that is subject to use in mathematical operations such as addition, substraction, multiplication, division, raising to a power, taking a root of, or supplied as input to a mathimatical function such as SIN, LOG, etc....
Just because something is referred to as a number in its name does not make the value a true number, think department number, part number, etc... where the value might actually have alpha-numeric characters.
If your phone number field only stores US phone numbers then a formatting routine can probably be devised to handle proper storage and retrieval of the number but if the column may also be used to hold an international phone number the use of a number datatype is really going to complicate any such routine.
HTH -- Mark D Powell --

Similar Messages

  • User Defined Field Definition

    Hi , there is a way to create a user definied field definition that connects in a specific table of my application an list a column?
    Thanks.

    This problem has been discussed a number of times before and there are a few different approaches that you can take depending on your exact requirements.
    If you go to the properties tab in the form designer there is a "lookup query" property that should be able to resolve your problem but I have never used this specific feature so unfortunately I can't give you the specific details for the exact syntax.
    According to this thread it should work but unfortunately the thread doesn't contain any details: Re: creating lookup definition
    Hope this helps
    /M

  • Drop Column Field and Drop Row Fields in the Details Field area in the Cube Browser of BIDS/SSDT 2012

    Hello. When I right click a cube in the solution explorer and click browse, I am presented with a Details field area which doesn't have "Drop Row Fields" area like in BIDS 2008, and doesn't have "Drop Column Fields" area like in BIDS. It just has one details
    area with the message "Drag levels or measures here to add to the query".
    How do I include the  "Drop Row Fields" area and the  "Drop Column Fields" area in this Details area so it can be like 2008? 

    I am using MDX query to build SSRS report.
    How do i get MDX query from Excel ?
    Hi Vishal,
    We can use "OLAP PivotTable Extension" to get MDX query in Excel, please download it from:
    http://olappivottableextend.codeplex.com/
    In addition, I would suggest you open a new case if you have any more questiosn.
    Regards,
    Elvis Long
    TechNet Community Support

  • Display Image on report through Field Definitions Only File.

    Hi all,
    I have a report where I work with Field Definitions Only files (ttx).
    These files are mapped to classes in code behind (csharp).
    In code behind I make lists of these classes. Each list is set as the datasource of a subreport.
    This works great!
    My new goal:
    Now I tried adding a picture to my report.
    In the TTX file I added a BLOB field.
    In the code-behind class I added a System.Drawing.Image.
    My actual problem:
    The class gets filled with the image, but the image is NOT displayed on the report
    Does anyone know why this is happening?
    How can I fix this? (should I use another Type in my class for the picture?) (should I format the picture in the report? ....)
    Kind regards,
    Wim

    Hi AG,
    Thanks for your response.
    This is my TTX field:
    Signature     BLOB          
    I can't see the image in the report because I create the image in code-behind.
    I think the problem doesn't occur in CrystalReports but in the conversion from my StrokeCollection (I use an InkCanvas [WPF] to capture a signature) to a ByteArray.
    I am already one step closer to the solution. You can't just assign an object of type Image to the BLOB field of the report but it has to be a Byte-Array.
    The problem I am facing now is that the picture is black after a conversion. (I see this when I export to disk and open the file in MSPaint).
    The good thing is that CR shows me a black image so I guess CR is doing its job!
    Kind regards,
    Wim

  • We are trying to do a Quick payment from payment workbench and getting 'FRM-41830: List of values contains no entries' error for payment document column/field. Payment document setup looks good. Not sure what the issue is.

    We are trying to do a Quick payment from payment workbench and getting 'FRM-41830: List of values contains no entries' error for payment document column/field. Payment document setup looks good. Not sure what the issue is.

    Already gone through following three notes but didn't found resolution.
    APXPAWKB: FRM-41830 When Clicking on Payment Document LOV (Doc ID 1081305.1)
    R12: APXPAWKB: Payment Document Lov Is Empty When Entering A Payment (Doc ID 857587.1)
    R12: Payment Workbench Error: FRM-41830 List Of Values Contains No Entries (APXPAWKB.FMB) (Doc ID 1323875.1)

  • Addition of new column /field PO number in list of shopping carts

    Hi All,
    We are working on SRM 6.0
    We want to add new column (field) PO number in list of  shopping carts on the Shopping Carts tab
    Can anyone give me some pointers as to how to achieve this.
    Thanks in Advance
    Snehal

    Hi,
    Please be clear .. where you are going to add column ?
    Standard report BBP_BW_SC2  available in that we can see the shopping cart status and follow on document (PO) information
    Thanks & Regards,
    prasad.s

  • Change 'Created' column/field value

    I have a business requirement of changing the date of 'created' column/field of selected
    document/s in a document library(it has to be changed to current system date). This has to be done by adding a custom button to the ribbon and providing authorization to the button. Please let me know if this is possible?

    Hi,
    Please refer to the following article.
    http://www.learningsharepoint.com/2011/06/13/using-javascript-js-file-in-commandaction-of-custom-ribbon-button-sharepoint-2010/
    In the above article, command action is JavaScript function. For example.
    <CommandUIHandler
    Command=”AboutButtonCommand”
    CommandAction=”javascript:ChangeDate();“/>
    Create a script file and refer to your command action.
    //Referencing the Script
    <CustomAction
    Id=”AboutFilesButton.Script”
    Location=”ScriptLink”
    ScriptSrc =”/_layouts/RibbonScripts/ChangeDate.js”/>
    You can add the following function to the "ChangeDate.js" file.
    function ChangeDate()
    var ctx = new SP.ClientContext.get_current();
    var list = ctx.get_web().get_lists().getByTitle("CM");
    var items = SP.ListOperation.Selection.getSelectedItems(ctx);
    var item = list.getItemById(items[0].id);
    item.set_item("Created", "2/13/2015"); //change the date
    item.update();
    ctx.executeQueryAsync(
    function () {alert("Created date changed") },
    function () {alert ("Error")}
    Hope this works for you.
    Please don't forget to mark it as answered, if your problem resolved or helpful.

  • Can you update a table with a column field that has a default value

    I am looking at a developer table(table_one) and basically, he has a column field called is_update and the default for that field is 1,
    I was just wondering whether it would still be possible for me to use an update syntax of the form
    update table_one t
    set t.is_update = 0;
    where t.id = 221;because I have tried doing so and the update isnt working

    Semicolon (;) is the problem!
    update table_one t
    set t.is_update = 0 --Removed semicolon here!.
    where t.id = 221;http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_10008.htm#SQLRF01708
    query & URL added: Saubhik on Oct 21, 2010 7:02 AM

  • Hiding columns/fields in the response portfolio after you distribute your form

    I have a 10 page from that has about 100 radio buttons (yes/no) in it.  After someone submits the form and I open my response portfolio the only columns/fields I want to see is the name, date, age and exclude all the radio buttons. Can you set an option LC ES before you distribute the form?
    I have found I can do this within the portfolio pdf, but only going to modify---view-then unchecking what I do not want to see…………BUT it is ONLY one at a time.  If there is another way of doing it LET ME KNOW!!
    Thanks
    mike

    The response file is a collection. But unfortunately it can't be edited, at least not easily.  You can remove a column with a script run in the console window.
    this.collection.removeField("FieldName");
    The field name is typically the name displayed at the top of the column.
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

  • How to get difference between two rows for a column field?

    hi, all,
    Could anyone show me what query statement is to get the difference betweem two rows for two column fields?
    The tables and its records are like this:
    id,      begin,      end
    p1         21          30
    p2          45          60
    p3          120          150
    I would like to have the query result like this
    id,    diff
    p1     15    --- which is 45 minus 30
    p2     60    --- which is 120 minus 60
    and so on...
    thank you in advance.
    Raffy

    You can use the LAG function to access values from previous rows:
    with q as (select 'p1' id, 21 v_start, 30 v_end from dual
    union all
    select 'p2', 45, 60 from dual
    union all
    select 'p3', 120, 150 from dual)
    select id, v_start, v_end, v_start - lag (v_end, 1, 0)
      over (order by id) v_diff from q
    ID,V_START,V_END,V_DIFF
    p1,21,30,21
    p2,45,60,15
    p3,120,150,60
    See the SQL Language doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/functions075.htm

  • Hiding columns/fields in the response portfolio in Adobe Pro X

    First WHERE is the modify---view in X
    In LiveCycle Designer, I have a 10 page from that has about 100 radio buttons (yes/no) in it.  After someone submits the form and I open my response portfolio the only columns/fields I want to see is the name, date, age and exclude all the radio buttons.
    In Adobe Standard 9 and while in the response portfolio I can remove the columns/fields, but only going to modify---view-then unchecking what I do not want to see…………BUT it is ONLY one at a time.  If there is another way of doing it LET ME KNOW!!
    Thanks
    mike
    Please send me your email if you do not understand what I am trying to get ask/explain. I can then send screen shots to you to see what i am trying to get across
    mike
    [email protected]

    The response file is a collection. But unfortunately it can't be edited, at least not easily.  You can remove a column with a script run in the console window.
    this.collection.removeField("FieldName");
    The field name is typically the name displayed at the top of the column.
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

  • Syntax error in field definition

    Hello,
    Does java sun default driver support data type BLOB? I need create a table name PERSONS, and then store it to Access Database. But, every time when I run the program, it shows the following message:
    SQLException: [Microsoft] [ODBC Microsoft Access Driver]
    Syntax error in field definition.
    Below are the code, does any one have any idea about the problem?
    import java.sql.*;
    public class CreatePersons {
         public static void main(String args[]) {
              String url = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=Database\\DB1.mdb";
              Connection con;
              String createString;
              Statement stmt = null;
              createString = "create table PERSONS " +
                                       "(PersonName VARCHAR (20) NOT NULL, " +
                                       "PersonPicture BLOB (64K) NOT NULL," +
                                       "PRIMARY KEY( PersonName )" +
              try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              } catch(java.lang.ClassNotFoundException e) {
                   System.err.print("ClassNotFoundException: ");
                   System.err.println(e.getMessage());
              try {
         con = DriverManager.getConnection(url,
                   stmt = con.createStatement();                                   
                   stmt.executeUpdate(createString);
                   stmt.close();
                   con.close();
              } catch(SQLException ex) {
                   System.err.println("SQLException: " + ex.getMessage());
    Thanks,
    Daniel

    It doesn't have anything to do with the java driver.
    You are passing DDL. That goes directly to the MS Access interface (the ODBC driver and the supporting dlls.)
    There are two possibilities.
    - The ODBC driver (and support) does not allow you to create blobs.
    - The syntax you are using is wrong (this would be my guess.)
    For the second case you might try creating the table in Acces, then use tools->analyze->documentor to produce the SQL description for that table. Whatever it produces is probably the output that it expects.

  • "[Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition

    I am creating a program in Java which has a Database reference application.The Database I am using is MS Access.But whenever I am trying to run the program from DOS Prompt(ie executing the program:java <program name>) I am unable to connenct to the database.The compiling of the program doesn't show any error(ie javac <program name>) The following error is displayed at the DOS Prompt:
    "[Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition."
    Pls give me a detailed help report.If it is a Machine side problem do help me to solve it.Mine is a Compaq Presario Machine,OS:Windows 98,Database:MS Access(Office XP)
    I request you to help me in this matter.Pls email ur responses to:
    [email protected]
    [email protected]

    hi there
    did u configure ur ODBC setting if no then try these steps
    ================== ODBC Settings ========================
    step 1 : go to control panel
    step 2 : ODBC Data Sources
    step 3 : click UserDSN Tab
    step 4 : click ADD Button , Select Microsoft Access Driver , Finish
    step 5 : Give Datasource Name as "DATABASE_NAMEXXX" , no double quotes
    step 6 : use Select and select Database_NAME.mdb from <INSTALL DIRECTORY>\DATABASE_NAME.mdb
    click ok , ok finish
    <INSTALL DIRECTORY> is where yr database is
    =========================================================
    then in yr program
    URL for yr database
    "jdbc:odbc:DATABASE_NAMEXXX" // as name in step 5
    and Driver is
    "sun.jdbc.odbc.JdbcOdbcDriver"
    if u done all these steps then check yr spelling of table and tabel field in yr program
    hope this works for u
    regards
    Satinderjit

  • Not found Users Form in User Defined Field Definition!!

    I want to add new filed into Users form, As my subject, but when I query "Users" in User Defined Field Definition, no result return, just exist Orgnizations, Roles, Resource Objects,Structure Utility.
    FYI, OIM Version: oim 11g
    Thanks,
    Edited by: 793495 on 2010-10-11 上午2:53

    this you can find in Web console
    configuration>>user configuration>>action>>attributes
    I am able to add attribute but not able to make field as mandatory,while creating attribute we are not getting option like that you want this field mandatory or not but while modifying the attribute we are getting option like required field radio button if i select that i am getting error "you cant change an attribute to required unless all the user have value for this field"

  • "Users " Form Name from "User Definied Field Definition" does not showing

    Hi everyone!
    I start to implement the new SAP Connector on OIM 9.1.0 and one of steps is configure the lookup Lookup.SAP.HRMS.AttributeMapping.
    I need to add more fields beyond those already exists, and in accord to Documentation, I need to create the UDF of these fields, but when I search of "Users" form name form "User Definied Field Definition" option, I receive the follow response:
    "Query Failed: No Record For this Query"
    Thinking about it, I think that necessary create one User Form, but...this form isn't a standard form?
    What I do in scenarios like this?

    Can you share your environment details. Are you trying it out in a newly installed OIM ?_
    Yes, it's a newer fresh installation of OIM 9.10. We use the old version (9.03) in production environment and would like to upgrade to 9.10. This issue occur in a fresh installation in Development Environment.
    The one possible reason for this may be due an improper upgrade to 910X. I actually faced this issue while I was installing/upgrading my OIM. I did the process all over again and it was just perfect. I am not sure that this might be an issue with you or not. But there is simply no othe reason for the Users from not showing uo in the "User Definied Field Definition"._
    If you have taken a fresh backup of the schema just after installation, then import that backup dump and see if you are able to view the Users form. If in case you are not able to view it then your installation / upgrade is corrupt._
    No, we don´t have a fresh dump of environment. We just follow the documentation and all the steps was done without problem. The SAP connector import the fields from the reconciliation using flat IDOC file, just only the standard fields. We need to add newer fields and attributes and after, we face this problem.

Maybe you are looking for

  • Substitution? or user exit?

    Hello folks We have defaulted a GL account(18XXXX) to a default profit center through transaction code 3keh. There is a WBS element whose costs gets settled to this GL Account. This GL Account is a balance sheet account. On settlement of this WBS, th

  • IMAC doesn't recognize my Canon GL2 camcorder any longer ?

    I am using a 24 inch Imac with a processor 2.16GHZ intel core 2 Duo running Tiger 10.4.10. I am using Final Cut Pro version 5.1.4 Up to the present time I've been able to use my Canon GL2 Camcorder for downloading. Suddenly, for no apparent reason, m

  • CS3: Applying Object styles not always consistent

    Hello, I have a number of Object Styles, each of which have different Paragraph Styles called out. In turn, each of these Paragraph Styles calls out different fonts, font styles and sizes. Most of the time I can click on a text frame and all the para

  • Wrong Hard Disc Drive size

    Hello everyone, I have a 2011 MacBook Pro (2,3GHz i5, 8GB RAM, 320GB HDD, OS 10.8.3). I recently learned that the remaining capacity on my internal HDD is not shown in the right way: If I open the HDD with "preview" (spacebar) or the utility "activit

  • ITunes crashes as soon as I plug in iPhone 3GS

    Recently my iPhone 3GS freezes iTunes 9.0.2 (25) every time. I tried every USB port and the same problem occurs. I can open iTunes without the iPhone connected but the minute I plug it in iTunes freezes and I have to force quit. I read Windows users