Best way  for to choice number greater than 0.0001

Hi
I must put in where condition all number greater than zero, but the precion must to be in 4th place
I tried in where condition
   trunc(abs(T$QUAN$O),4)>0.0001Is there some other way ?
There are many columns that must compared (10 )
Tia
using
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
PL/SQL Release 9.2.0.8.0 - Production
CORE     9.2.0.8.0     Production
TNS for IBM/AIX RISC System/6000: Version 9.2.0.8.0 - Production
NLSRTL Version 9.2.0.8.0 - Production
Edited by: muttleychess on Jan 11, 2012 7:01 PM

I tried something like, but no work
WITH X  AS(
  SELECT 1 COD, 0.001 VALOR FROM DUAL UNION ALL
  SELECT 2 COD, 0.0001 VALOR FROM DUAL UNION ALL
  SELECT 4 COD, 0.00001 VALOR FROM DUAL UNION ALL
  SELECT 5 COD, 0.000001 VALOR FROM DUAL UNION ALL
  SELECT 6 COD, -0.001 VALOR FROM DUAL UNION ALL
  SELECT 7 COD, -0.0001 VALOR FROM DUAL UNION ALL
  SELECT 8 COD, -0.00001 VALOR FROM DUAL UNION ALL
  SELECT 9 COD, -0.000001 VALOR FROM DUAL )
SELECT X.*, TRUNC(ABS(VALOR),5) TRUNCADO, ABS(VALOR)*10000 MULTIPLY
FROM X   
WHERE TRUNC(ABS(VALOR),5)>0  should return only cod 1,2,4 and 5
but
       COD      VALOR   TRUNCADO   MULTIPLY
         1      0,001      0,001         10
         2     0,0001     0,0001          1
         4       1E-5       1E-5        0,1
         6     -0,001      0,001         10
         7    -0,0001     0,0001          1
         8      -1E-5       1E-5        0,1What is wrong ?

Similar Messages

  • Are there any ways to get sequence number other than getting it for each re

    are there any ways to get sequence number other than getting it for each record

    CACHE is the number of values Oracle stores in memory. So the first call to NEXTVAL Oracle grabs x numbers; subsequent calls to NEXTVAL are served from memory until they're all gone and them another bunch is grabbed. The attached sql*plus output demonstrates this behaviour.
    Note that normally unused numbers in the cache are returned to the data dictionary but in exceptional circumstances (DB crash) they may be lost.
    Cheers, APC
    SQL> create sequence seq cache 3
      2  /
    Sequence created.
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              1
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             1
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             2
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             3
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             4
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              7
    SQL>

  • Which is the best way for posting a large number of records?

    I have around 12000 register to commit to dababase.
    Which is the best way for doing it?
    What depends on ?
    Nowadays I can't commit such a large number of register..The dabatase seems hanged!!!
    Thanks in advance

    Xavi wrote:
    Nowadays I can't commit such a large number of registerIt should be possible to insert tens of thousands of rows in a few seconds using an insert statement even with a complex query such as the all_objects view, and commit at the end.
    SQL> create table t as select * from all_objects where 0 = 1;
    Table created.
    Elapsed: 00:00:00.03
    SQL> insert into t select * from all_objects;
    32151 rows created.
    Elapsed: 00:00:09.01
    SQL> commit;
    Commit complete.
    Elapsed: 00:00:00.00
    I meant RECORDS instead of REGISTERS.Maybe that is where you are going wrong, records are for putting on turntables.

  • How to prevent numericstepper from setting the value to the defined Maximum when a number greater than maximum is entered in by keyboard and user hits the "Enter" key.

    I need to set the Maximum so that the use can use the mouse to change the value of numericstepper (and not go over a certain number), but at the same time I have to allow the user to enter their value by typing in the text field. When the user enters a number greater than the Maximum, I disable the "Ok" button of the dialog and show a red warning(error message). The issue is that the user can hit "Enter" and numeric stepper would set the value to the Maximum and the dialog box would close and the rest of code would run. I want the numericstepper not to change the value and keep showing the warning even if the user hits the "Enter".
    Note: Setting maxChar does not help since my maximum is 1000, and user might enter 5555
    I would appreciate the help.

    Thanks for trying to help, But
    The issue is that if I set the maximum value of stepper 1 greater than the max value that I want, then the user can select an invalid value(of myMax + 1) when he clicks on the UP arrow of the numeric stepper(which is not acceptable for what I am working on).
    I need to preserve the users invalid number, while not letting the user to select an invalid number by clicking UP key.
    I noticed that when the user enters a number greater than the Maximum, and then click on the down arrow, it would set the value to 1 less than the maximum. This is not acceptable either.

  • Best way for building an application main frame

    I'm about to program a desktop application.
    The main frame will have menus, toolbar, status bar etc.
    There will be a lot of interaction between the menus, toolbar buttons and other custom gui components (such as an editor).
    My question is which is the best way for building it.
    Cramming all the code in one class file is out of the question.
    I thought about making my own custom JFrame and add API functions like for it so different GUI elements can be accessed.
    Each component which will be manipulated will be in its own class file with the constructor accepting a reference to my custom JFrame object which it is contained in.
    Any suggestions on the matter would be of great help since I've never done extensive Swing programming before.
    P.S.
    The application makes extensive use of RMI.
    What considerations should I take into account (except using SwingUtilities.invokeLater()) ?

    Hi,
    I have replied on this subject somewhere else today but what I do is have one simple entry point where I just instanciate a JFrame.
    On that frame I have a main JPanel. On that panel I add new objects like JPanels, tabs etc.
    I keep each new panel in a separate source as it is easier when the application grows, and it will. That also means that several programers can work with the same application without interfearing each other.
    I hope you understand what I mean the the thing is to split up the code into several sources.
    It may not suit everyone but I found this approach to be the best for me.
    Klint

  • Hello, what is the best way for me to convert RW2 raw format for use in Photoshop CC

    Hello, what is the best way for me to convert RW2 raw format for use in Photoshop CC. I would appreciate any help with this.

    Thanks for the quick help. I do have to leave for work. When I try to
    download the images from the camera they seem to only be in jpeg (I don't
    see any rw2 or raw files to download). If I select the jpeg file it seems
    to only download a jpeg file. I do understand that I do have the option to
    open the jpeg in RAW. In doing this, is all the extra information included
    in the RAW file there or is it lost coming from the camera
    Once again thank you for trying to make me understand how this works.
    Have a great day.
    On Sat, Sep 13, 2014 at 12:14 PM, ssprengel <[email protected]>

  • Best way for  data uload for vendor master

    what is the best way to upload. when i try to an lsmw by recording the screen is not the same and mobile number does not come while recording. what is the best way for the upload

    try with this program  RFBIKR00
    or you have to a BDC recording

  • Best way for Crossjoin in MDX query

    Hi all,
    what is the best way for  for Cross join in MDX query
    Regards,
    Manish

    Hi Manish,
    In MDX, CrossJoin function returns the cross product of one or more sets. In your scenairo, what do you mean by best way for this function?
    When using CrossJoin function, we need to consider the performance of the query. If you cross-join medium-sized or large-sized sets (e.g., sets that contain more than 100 items each), you can end up with a result set that contains many thousands of items—enough
    to seriously impair performance. You can use the NonEmptyCrossjoin function instead of Corssjoin function. For the detail information, please see:
    http://sqlmag.com/data-access/cross-join-performance
    http://msdn.microsoft.com/en-us/library/ms144797.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Best Way for login???

    I was just wondering what everyone thought would be the best
    way for a secure login with 4 different access levels. It's going
    to do just how it sounds, different levels see/have different
    access to different functions and components in the program. Would
    an initial php login work? Would it be difficult to implement it
    inside Flex?? Any input would be greatly appreciated. TIA!!!

    It is absolutely possible using states. What you do is assign
    certain access level to the different states for example...
    <mx:states>
    <mx:State name="Visitor">
    <mx:RemoveChild target="{myLoginHBox}"/>
    <mx:AddChild relativeTo="{mainMenuHBox}"
    position="lastChild">
    <view:LogoutHBox/>
    </mx:AddChild>
    <mx:AddChild relativeTo="{mainMenuViewstack}"
    position="lastChild">
    <mx:Canvas label="Visitor Area" width="100%"
    height="100%" id="canvas1">
    </mx:Canvas>
    </mx:AddChild>
    </mx:State>
    <mx:State name="Youth" basedOn="Visitor">
    <mx:RemoveChild target="{canvas1}"/>
    <mx:AddChild relativeTo="{mainMenuViewstack}"
    position="lastChild">
    <mx:Canvas label="Youth Area" width="100%" height="100%"
    id="canvas2">
    </mx:Canvas>
    </mx:AddChild>
    </mx:State>
    <mx:State name="Member" basedOn="Youth">
    <mx:RemoveChild target="{canvas2}"/>
    <mx:AddChild relativeTo="{mainMenuViewstack}"
    position="lastChild">
    <mx:Canvas label="Member Area" width="100%" height="100%"
    id="canvas3">
    </mx:Canvas>
    </mx:AddChild>
    </mx:State>
    <mx:State name="PowerMember" basedOn="Member">
    <mx:RemoveChild target="{canvas3}"/>
    <mx:AddChild relativeTo="{mainMenuViewstack}"
    position="lastChild">
    <mx:Canvas label="Power Member Area" width="100%"
    height="100%" id="canvas4">
    </mx:Canvas>
    </mx:AddChild>
    </mx:State>
    <mx:State name="AssistantAdministrator"
    basedOn="PowerMember">
    <mx:RemoveChild target="{canvas4}"/>
    <mx:AddChild relativeTo="{mainMenuViewstack}"
    position="lastChild">
    <mx:Canvas label="Assistant Administrator Area"
    width="100%" height="100%" id="canvas5">
    </mx:Canvas>
    </mx:AddChild>
    </mx:State>
    <mx:State name="SeniorAdministrator"
    basedOn="AssistantAdministrator">
    <mx:RemoveChild target="{canvas5}"/>
    <mx:AddChild relativeTo="{mainMenuViewstack}"
    position="lastChild">
    <mx:Canvas label="Senior Administrator Area" width="100%"
    height="100%" id="canvas6">
    </mx:Canvas>
    </mx:AddChild>
    </mx:State>
    </mx:states>
    Then you create a loginResultHandler that first checks to see
    if the user is logged in. If the user is logged you then check for
    their access level. Personally I used digits (in my example roles 1
    through 6). The digit is what I store in my database. Once the
    logged in user's role is established the state is changed
    accordingly. Do some research on using states! It will absolutely
    help you to do what you are looking to do. An example of the code
    for the loginResultHandler is...
    // loginResultHandler function
    private function loginResultHandler(event:ResultEvent):void
    currentUser = event.result as User;
    if (currentUser.loggedIn)
    // If login successful
    if (currentUser.roles == "5")
    this.currentState='Youth';
    else if (currentUser.roles == "4")
    this.currentState='Member';
    else if (currentUser.roles == "3")
    this.currentState='PowerMember';
    else if (currentUser.roles == "2")
    this.currentState='AssistantAdministrator';
    else if (currentUser.roles == "1")
    this.currentState='SeniorAdministrator';
    else
    currentUser.roles == "6";
    this.currentState='Visitor';
    myLoginHBox.visible=false;
    else
    // If login unsuccessful
    Alert.show("Login unsuccessful", "Server Authentication");
    I just finished setting up role based authentication using a
    combination of Flex 2, ColdFusion MX 7.02 and MS SQL Server Express
    2005. It took my two weeks to set up my CFC's (ColdFusion
    Components) and ActionScript files properly.
    My user login form is authenticated against my database. If
    the user is properly logged in he can only view what he is
    authorized to view. :)
    John

  • Best way for add thousans items to listbox without freezing ui in wpf

    Hello guys.
    What is the best way for add thousands items (or even more) to Listbox without freezing UI.
    I search many post in the web but I don't understand how this posts writer wrote that code.
    I realized that ObservableCollection can contain 1000 items or even more and show that items to listbox just for few second without freezing UI but I don't Know how can I use that!
    Can you guys give me an example.
    thanks.

    If you bind an observablecollection you can add items to that from a background thread.  Then bind that to the itemssource.  I usually new up an observablecollection, add the items then set the bound property to  that.
    But I avoid thousands of items. 
    You should provide some sort of filter mechanism the user chooses a category or whatever and then fill with a maximum of 300 items.
    Users simply can't work with thousands of items.
    It is usually reading the data out  a database which takes the time rather than creating objects to bind.
    Hence this:
    protected async override void GetData()
    ThrobberVisible = Visibility.Visible;
    ObservableCollection<CustomerVM> _customers = new ObservableCollection<CustomerVM>();
    var customers = await (from c in db.Customers
    orderby c.CustomerName
    select c).ToListAsync();
    foreach (Customer cust in customers)
    _customers.Add(new CustomerVM { IsNew = false, TheEntity = cust });
    Customers = _customers;
    RaisePropertyChanged("Customers");
    ThrobberVisible = Visibility.Collapsed;
    That's making an asynchronous entity framework call.
    A list of customers is obtained.
    These are then wrapped in a customer viewmodel each.
    Finally the observablecollection Customers is set to this new collection and propertychanged raised to notify the view.
    The itemssource of a datagrid is bound to Customers.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Can you please tell me the best way to increase the number of the downloads of my free ibook

    Since I got the green light in iBook store my free book has been
    Downloaded about 50 times in 10 days.
    What is the best way to increase the number?
    The title is : monter a cheval
    It's in French
    Thanks for the help

    Do you, or anyone ese, have experience in this service? And how's the paid vs free services they have?

  • What are the best ways (for best performance) in MII to process the incoming process messages from shop floor systems to SAP ECC 6.0 and vice versa?

    Hi All,
    Can you please suggest to choose the best ways (for best performance) in MII (12.2 on NW 7.3), to process the incoming process messages from shop floor systems to SAP ECC 6.0 and vice versa?
    Thanks

    Hi Surya,
    Best practices for flow of data from ECC --> SAP MII --> Shop floor & Vice verse:
    1. Send ECC data through IDOC's/RFC's as messages to SAP MII message listener and BSL transaction process data and update directly on shop floor database as if you configured in Data services or later send those data by web service to shop floor system (i.e. depends on Shop floor machines).
    From Shop floor:
    shop floor --> SAP MII --> ECC
    1. Use either Web service or fetch data from DB and pass data to BAPI's  for sending to ECC through BLS transaction.
    Regards,
    Praveen Reddy

  • WHat is the best way for other iphone users to share pictures with me?  I am doing a project which req. people to send me 100 pictures at a time that I'll be putting in my iphoto?

    WHat is the best way for other iphone users to share pictures with me?  I am doing a project which req. people to send me 100 pictures at a time that I'll be putting in my iphoto? thank you.

    ingridlisa,
    I'd suggest to ask them to create Shared PhotoStreams and to invite you to view the streams, see:
    iCloud: Using and troubleshooting Shared Photo Streams
    Regards
    Léonie
    Added:
    that I'll be putting in my iphoto?
    Will you be collecting the photos in iPhoto on your iPhone or on a Mac? On a Mac a Shared PhotoStream requires Mac OS X 10.8.2.

  • Acrobat Standard XI, but can only find the CD for windows.  I have a mac (I have access to an external CD drive and I have the product keys for windows).  What is the best way for me to install it?

    Hi, I purchased Acrobat Standard XI, but can only find the CD for windows.  I have a mac (I have access to an external CD drive and I have the product keys for windows).  I have never installed it anywhere else.  What is the best way for me to install it?

    Hi lintonm86921521,
    I can understand your concern & will guide you through this.
    I am so sorry to inform you that Acrobat XI Standard is not available on Mac, you can only use it on your Windows computer.
    You can also refer to the system requirements at : System requirements | Acrobat family of products—older versions (XI, X, 9)
    In case if you have any further query please let us know, we will be happy to help you.
    Regards,
    Aadesh

  • HT4914 I purchased iMatch because my old computer was failing and I was afraid of losing my music library. Now I bought a new laptop; what is the best way for me to transfer my library to my new laptop? Will iMatch help me do this?

    I purchased iMatch because my old computer was failing and I was afraid of losing my music library. Now I bought a new laptop; what is the best way for me to transfer my library to my new laptop? Will iMatch help me do this?

    Is/was failing or has failed?
    If the old computer still runs one of these methods may be best.
    Method 1
    Backup the library with this User Tip.
    Restore the backup to your new computer using the same tool used to back it up.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    I don't have personal experience with iTunes Match, but in principle you should be able to download all the tracks currently registered to your iTunes Match account. This isn't quite the same as restoring your previous library exactly as it was. There is always the potential for iTunes match to provide the wrong version of a song and could be content such as movies, podcasts, audiobooks etc. that would have been excluded.
    tt2

Maybe you are looking for

  • ITunes Running Slowly after 10.6 update

    i just fixed my external hard drive, where i keep all of my music and was so happy to finally use iTunes again. However i notice now that itunes has a laggy feeling overall and is generally unresponsive. For instance, adding new tracks takes about ha

  • Adance payment against po

    Hi I have some dough against advance payment against po 1) where I will get information how( user ID)  create advance payement  request again Po 2) Is it possible to do partial payment again advance payment Request Regards Kailas Ugale

  • UDO - Link button

    Hi, I have my custom designed form. Can I add a 'Orange Link arrow' for an UDO in it? I could do it for the system objects. When I tried it in the screen painter, I got the error 'Invalid Numeric Value'. Thanks in advance. Regards, Geetha

  • Problems with Preview and changes made to images

    i occasionally use Preview.app (v3.0.9) to rotate or crop image files (jpegs in this instance). if I then close the image, save changes and re-open, the image is changed. however, the icon doesn't update to the new orientation/crop and if I drag-and-

  • Why does Safari not open some youtube sites?

    Why does Safari not open some links I'm sent via e-mail?