NUMBER return types (Decimal/Int16/Int32) how does it work?

We ran into a problem with a stored procedure returning the result of a select (using Fill method).
Sometimes some data comes back as int32, sometimes the same data has decimal as datatype.
We've been struggling to get the same datatype back all the time for the same column. Unfortunately so far without success. The problem is that these columns are part of our key and we can't use a 'relation' between them if the datatypes are int32/decimal: they don't match.
To simulate the problem:
Create table myTest (col1 number(2));
insert a row (e.g. 12)
SELECT col1 FROM myTest
this becomes an Int16 when retrieved.
now comes the strange part:
SELECT col1 FROM myTest
UNION
SELECT 0 FROM DUAL
returns an DECIMAL.
We tried:
SELECT col1 FROM myTest
UNION
SELECT TO_NUMBER(0,2) FROM DUAL
but this does not work, it still returns an Decimal (expected Int16).
We tried to make the to_number into an outer select, we tried to create an UDT and populate that one, we tried a lot but did not succeed in get a guaranteed Int32 back.
Any ideas on how to resolve this?

Out of curiosity
what does
"select TO_NUMBER(0,2) from dual" returns? A Decimal or Int16?
Maybe (i am really guessing here) the union stmt returns a NUMBER(x,y) type which will cause the provider to gives you back a Decimal .net type.
Arnold

Similar Messages

  • My iPhone was stolen and I have contacted the police who are using the meid number to locate.  How does this work and what are my chances of getting the phone back?

    My iPhone was stolen.  I used Find My iPhone app to lock it and display a message.  The phone has not connected to the internet to locate it.  I contacted the police and they have taken my meid number.  How does this work and what are my chances of getting the phone back?  Are there other ways the theif can use it.  I was told once they put in a new sim card and use it, whatever software the police have, it will show up.

    Honestly? In the US (I can't speak to other countries, though I doubt it works much differently in a lot of the world) The police took your report and filed it either in their computers or, on paper. They will now not think of this again. The only time it will cross anyones mind is if, in the course of entering information into evidence about items recovered or seized at a crime scene, the serial number of an iPhone that was found/seized happens to match yours, in which case you will be contacted.
    The police in the US can and will do nothing to 'blok' the phone and it's not worth their time to try and locate it unless you know for a fact that it was stolen by a big time drug lord, master criminal, or some other such prime target and they can get a court order to track the location of the phone in order to locate this individual for your own purposes.  If they do that, they'll probably keep him under surveilance for a year or so before they act.
    Basically, the police don't care about your phone. If they find it, they will give it back to you. They are not, however, going to go looking for it. They have better things to do.
    I'm sorry, but that's the way it is.

  • SAP WM-RF 'Serial Number' Transaction LM80 - How does it work?

    Hi gurus
    We are looking at using the standard SAP RF transaction 'LM80' - 'Serial number capture'
    Does anyone have any experience with this transaction?  How does it work and what is the process flow?
    Cheers
    Eddy

    Hi
    Please advise if this is the process others are using for LM80:
    1. Create STO or Sales Order
    2. Create Delivery
    3. Create Warehouse Transfer Order
    4. Pick/Confirm Warehouse Transfer Order
    5. Scan serial numbers to completely picked delivery via LM80
    6. Post Goods Issue
    My question is:  is there a way to 'pick' via serial numbers?  The process would then be that you scan in serial numbers during picking
    kind regards
    Ed

  • How does skype work

    skype is new to meso how does things work????

    Hey, i.p-13-4-1994, and welcome to Skype!
    Skype works like a telephone on your computer!You can call someone and start a call with someone else's computer or Skype software for free or call someone's phone number for a nice, low rate!You can be called by someone on your computer!You can be a part of a conference call without the hassle of fees, connection numbers, PIN numbers, etc.You can stay silent and type and exchange messages to one another. You can show and tell some photos or send some files to others.You can show your face and turn a mundane voice call into an exciting video call!So what else would you like to know? You can go ahead and ask questions like "How do I add a contact?" or "How do I start a call?" Perhaps you would like to know "How much does it cost to call my friend's mobile phone in Singapore?" or "How do you use Skype WiFi?" All are great questions, so what would you like to know?

  • What is efax and how does it work?

    Hi!
    eFax® is a service provided by eFax®, not Hewlett-Packard, that allows you to send and receive faxes using the Internet rather than a phone line. eFax® is easy to use, but it is different than a typical phone-based fax machine. You don't require a phone line to use it, so you don't have to worry about busy signals and you can place your printer where you want it, not where the phone jacks are located! The fax number you are provided will not typically be a local number, and may even be in a different country. You will receive 20 incoming and 20 outgoing fax pages per month for free with this service. Your page counts will reset at midnight Pacific Time on the first of each month. You can also subscribe to eFax® Plus to obtain additional pages per month by visiting: http://www.eFax.com/products/internet-fax.
    How does it work?
    eFax® uses the printer Internet connection to send and receive faxes. When you send a fax, it is sent over the Internet to the eFax® server and then eFax® sends your fax to the recipient's fax machine over a standard phone line.
    Your faxes are received in a similar manner, but the order is reversed. The sender sends the fax over a phone line to eFax® and then eFax® sends the fax to your printer using HP's ePrint service.
    This question was solved.
    View Solution.

    Hi Im_cheesecake,
    Great information, if you don't mind I just wanted to piggy back off of your post, to clear any potential confusion.
    The 20 free incoming & 20 free outgoing faxes are with HP printer's that include the eFax service print app.  As of now, we have three printer series' that include the pre-installed eFax print app: HP Photosmart 7510 Series, HP Envy 110 Series, and the HP Photosmart eStation C510a.  
    eFax also has a free plan which allows you to receive a limited number of faxes but does not allow you to send any faxes. If you exceed the number of received faxes allowed, eFax will prompt you to upgrade to a paying account. Here are the main details of the free plan:
    One remote (i.e. non-local) eFax number
    Area code/prefix is selected by eFax and cannot be changed (unless you upgrade to a paid account)
    20 incoming fax pages per month (receive-only)
    You are prompted to upgrade to a paying account if you exceed 20 incoming pages, or if you need send capability.
    Say "Thanks" by clicking the blue Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"; therefore, it's easier for others to find.
    I am an HP employee.

  • Outbound Dialer records to cache. how does it work?????

    Im confused, on the campaign manager one of the settings for the campaigns is
    Records to cache.  The Outbound guide says that this is "the minimum number of dialing numbers
    that each dialer caches for each of your outbound option skill groups.  Default is 100"
    how often does it cache?
    how does this work?
    Lets says I have an agent campaign mode:Predictive_Blended,
    Records to cache: 1, everything else default.
    My Admin script is set to cycle every 1 minute.
    does this mean that 1 record get cached every minute?
    thanks

    Hi
    From what I have seen it is the number of records that the dialer fetches from the database at any given moment. The dialer cahches these records and dials them.  As soon as it exausts then it fetches more.
    Victor

  • ORACLETEXTSEARCH - How Does it work?

    Hi experts,
    I had a many disccusions with my coleagues about ORACLETEXTSEARCH in the UCM11g. We found that we don't undestrand How does it work.
    I have a basic questions:
    1. Does ORACLETEXTSEARCH use only database engine for the indexing?
    2. Can I start fulltext indexing without Oracle UCM? Only by database.
    3. Are some differences between UCM10g and 11g?
    Thank you for the answers and the explanation.
    Martin

    1. Oracle text is a DB tool installed at the DB level, however as others say the triggers to kick it off are done by UCM not independently at the DB. I do not think it could work that way.
    2. No, but other indexing options are available like SES
    3. 10g required a component to be added to the UCM server and required an 11.1.0.7.0 or greater oracle DB. 11g requires no extra component but still has the db requirement.
    SES can be configured to index multiple different repositories (including UCM) and you can control the index rebuilds directly from SES as an option for number 2.

  • How Does MINUS Work?

    Hi,
    I want to do a count(*) table 1 minus count(*) table 2 in a test case. How does minus work in functions?
    create table count1( col1 number);
    create table count2( col2 number);
    truncate table count1;
    truncate table count2;
    insert into count1 values(1);
    insert into count1 values(2);
    insert into count1 values(3);
    insert into count1 values(4);
    insert into count1 values(5);
    commit;
    insert into count2 values(1);
    insert into count2 values(2);
    insert into count2 values(3);
    insert into count2 values(5);
    commit;
    SQL> select * from count1
      2  minus
      3  select * from count2;
          COL1
             4
    SQL>
    SQL> select count(*) from count1
      2  minus
      3  select count(*) from count2;
      COUNT(*)
             5
    SQL>

    select * from count1
    minus
    select * from count2;Means all rows of count1 not present in count2, that is to say one row (4).
    select count(*) from count1
    minus
    select count(*) from count2;Means number of rows of count1 if it is different from number of rows of count2, no rows if count1 and count2 contains the same number of rows
    select count(*) from (
    select * from count1
    minus
    select * from count2
    );Means number of DISTINCT rows of count1 that are not present in count2
    select count(a.rowid) - count(b.rowid)
      from count1 a full outer join count2 b on a.rowid=b.rowid;Means number of rows of count1 - number of rows of count2, where - is arithmetic minus (not minus as defined in set theory).
    Try inserting some duplicate values and you'll get it.
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/02/query-gerarchiche/]

  • HT3702 I reported a problem and I got a confirmation saying that my money was refund, I have't received anything yet. How does this work?

    I  reported a problem and I got a confirmation saying that my money was refund, I have't received anything yet. How does this work?

    It should be added either to your iTunes account, or possibly to your credit card if the purchase was made on with it.
    How long ago did you get the email ? It may take 48 hours for it to appear - if it's been longer than that and you can't see it on your iTunes balance (and you've tried logging out and back into the account to see if the balance updates) nor on your credit card then try contacting Support again, and include your case number if you have one.

  • How does Iterate work inside an Action

    I'm having trouble figuring out how does <Iterate > work inside an <Action> in a workflow. My <Action> is to call a subprocess that takes several arguments and initiates an approval. Since I need to fire-off several approvals at the same time instead of chaining them I use <Iterate> that loops over a list variable.
    Now the subprocess being an approval the workflow gets suspended and divided into multiple parallel paths. My question is that how do these parallel paths assimilate together after approval or they don't assimilate at all and process in separate parallel lines or otherwise whichever approval returns first takes precedence and proceeds with rest of the activities.
    TIA,
    AndyDev

    Thanks for the reply. But this doesn't answer my question completely.
    Say within <Iterate> I specify **for='var_name' in='list_name'** will it continue to run after it has run once for each element in the list. If yes, doesn't it trigger the sub-process multiple times, something I don't want. If no, what happens next ? (that was actually my original ques).
    Say if list_name had 5 elements, it triggers one sub-process (which is a multiapproval) for each of them. What happens next ? Does it transition to next activity? Does it wait for all approvals to finish approve/reject?

  • Properties Class, How does it work

    Hi
    I was struggling to find how to use Properties Object, to read properties file, then I saw the following solution:
    fis = <classname>.getClass().getResourceAsStream("<prop file>"); (1)
    prop = new Properties();(2)
    prop.load(fis);(3)
    fis.close();(4)
    This works fine, but I am not able to understand, how does it work?
    <classname>.getClass() should return a class object, and this class must be havaing getResourceAsStream() method, which is used by the properties object. But what is the need of first getting a "class" object. Our aim is to open the Properties file, then why do we need any reference to the current class.
    Can anybody explain the jargon of the line -(1)
    Gaurav

    the Class class is defined in the lava.lang package. The java virtual machine (JVM) uses a class loader to load class definitions from wherever <g> into memory, ok? The Class class represents the JVM's internal holding of a class definition (as opposed to instances of the class itself).
    To get the Class for any class, you can use the getClass() method on any object, or you can use the <classname>.class syntax. Either way, you get an instance of Class.
    The Class class contains some utility methods about class definitions prresent in the JVM. Importantly, the Class object for a class contains a reference to the class loader that loaded the class. You get it with the getClassLoader() method. The class loader is a thing that knows how to get a class definition from a local drive, or of a jar file, or off the web (if you are using an applet), or whatever. If one class needs another class to work, the class loader knows how to get the definition for that other class.
    Say I have a class
    class Foo {
       int bar(Baz baz);
    }and another one
    class Baz {
    }And both of these are in a jar file at http://z.com/applet1.jar
    An instance of URLClassLoader will be used to fetch class Foo. When Foo needs the definition of Baz, that same loader will be used to get Baz.
    A jar file (or a directory on your local drive) can contain anything at all, not just .class files. It might contain .prioperties files. These are called "resources". If you bundle them up with your class files, then the class loader that loaded the class files can also get them. So if your widget has gif files that it uses for icons, you just bundle them all up together.
    Of course, Class.getResource() is just a convenience method for Class.getClassLoader().getResource().

  • GET bsid. How does it work?

    Hi guys,
    How does GET works?
    GET bsid.
    bsid is an logical database...
    Thanks a lot!
    Rgds,
    Mark

    Hi,
    When you link a logical database with an executable program, the GET statements determine the depth to which the logical database is read. When you call the function module LDB_PROCESS, you determine the depth by specifying a node name in the CALLBACK parameter. For each node for which you request data, a callback routine can be executed at two points. These correspond to the GET and GET LATE events in executable programs. In the table parameter CALLBACK, you specify the name of the callback routine and the required execution point for each node. A callback routine is a subroutine in the calling program or another program that is to be executed at the required point.
    For the GET event, the callback routine is executed directly after the data has been read for the node, and before the subordinate nodes are processed. For the GET_LATE event, the callback routine is processed after the subordinate nodes have been processed.
    The line type of the table parameter CALLBACK is the flat structure LDBCB from the ABAP Dictionary. It has the following components:
    LDBNODE
    Name of the node of the logical database to be read.
    GET
    A flag (contents X or SPACE), to call the corresponding callback routine at the GET event.
    GET_LATE
    A flag (contents X or SPACE), to call the corresponding callback routine at the GET LATE event.
    Also chk this for sample code
    [http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9aa335c111d1829f0000e829fbfe/content.htm]
    Pls. reward if useful...

  • How does this work?

    This is not a complaint, but a confused sigh of admiration. I've got an email account at the university where I teach. When I got my iBook, it took me a while, and a few conversations with IT at the school, to get this account working in the Mail application. (Since I have a Verizon DSL at home, I had to include that SMTP as the outgoing server.) Anyway, I synched this mail account (along with my AOL and .Mac accounts) onto the iPhone, and it works perfectly, both incoming and outgoing. I didn't have to change any of the settings. I thought I was computer savvy, but I can't wrap my mind around this. It seems like magic. How does it work?

    The sync process with iTunes transfers the email account settings (for your chosen accounts via your iPhone sync preferences) from the Mail application on your Mac to the iPhone's email application.
    The iPhone is running OS X and the iPhone's email client can be considered a mobile version of the Mail application.

  • Was told a USB device would create a PDF automatically from the data contained within when plugged into my USB port. Doesn't seem to work. How does this work and how can I fix the device I received?

    Acrobat is not on the USB device - only Adobe Reader needed on the PC. How does this work? How can I fix this device if at all?

    You need to ask the people who sold it to you. Doesn't sound like it has anything to do with Reader.
    However, you should be wary of devices that automatically try to open files when plugged in. They can also infect your computers with all kinds of viruses or malware.

  • HT2357 So how does this work on Mountain Lion? I cannot seem to ignore the iTunes 11 updates, which now seem to appear every 5 minutes!!

    So how does this work on Mountain Lion? I cannot seem to ignore the iTunes 11 updates, which now seem to appear every 5 minutes!!

    Fantastic!  Didn't work at first so restarted App store and tried again.  This time it asked 'ignore update'.  All gone!

Maybe you are looking for

  • Nokia Email and vanity domain hotmail address

    Hi, I just got the Nokia e71x. Setting up the email client from email.nokia.com. I tested it and got to work with my hotmail address, it's [email protected] But now I'm trying to get it set up for my other windows live mail, it's through my school bu

  • Apple will not let me install ITunes - Help

    ITunes would not start - error Quicktime needs to be reinstalled. So I removed quicktime through the control panel and then went on the Apple site to reinstall Quicktime. Website kept saying "Thank you for installing....". So, I uninstalled ITunes to

  • Configuration Payment Term

    Hi !    How I can set payment term for Customer with condition Payment on the fifth (5) of next month and use baseline date default with Document date ? Help me  please.

  • APEX 3.1 export to 2.1

    Hi all, Is there anyway I can install a 3.1 application I exported onto a 2.1 instalation of APEX? Thanks S

  • IPhone 4 sound issues (only out of one ear bud)

    I've tried multiple headphones/ear buds and I can only hear music out of one side. This is obviously an iPhone 4 issues considering the headphones don't work on it but work on other stuff. Any ideas on how to get this fixed? I got this phone less tha