IsNan() function

Hi All,
I would like to ask regarding the IsNan() function. How is it used and what is its output?
I am using it in an if statement and cant seem to get a result. It only outputs #error in my report.
I am using it in a matrix report which displays the percentage(%) calculation for project hours of a department.
There might be where a department has no project hours clocked and I would like to output 0%
Can anyone help?
Thanks & Regards,
Fadzli

Hi Fadzli,
The Double.ISNaN(Expression) method returns boolean value, which is True or False. True if the Expression evaluates to not a number; otherwise, false. For example, one expression of report definition language like this:  =Double.IsNaN(12.03) ,  which returns false.
we often use the IsNumeric() function to evaluate an expression as a number. This function also returns a Boolean value indicating whether an expression can be evaluated as a number. For example, the expression: =IsNumeric(12.03)  , which returns true.
If the above information still can’t help you, please POST what you want to do with the IsNan() in your report project and better with sample data.
Regards,
Jerry

Similar Messages

  • Using isnan

    I want to use isnan() function in a fortran code which I am compiling with mpif77/mpif90 or mpf95. I am getting error message
    mpf95 -c main.F -xO3 -Bstatic -e -Iinclude -I/opt/SUNWhpc/HPC7.1/include -I/home/hpc2073/SPfft/SPfft_32/include
    if (isnan(utau).or.isnan(ubulk)) then
    ^
    "main.F", Line = 190, Column = 14: ERROR: IMPLICIT NONE is specified in the local scope, therefore an explicit type must be specified for function "ISNAN".
    if (isnan(resid)) then
    ^
    "main.F", Line = 2063, Column = 11: ERROR: IMPLICIT NONE is specified in the local scope, therefore an explicit type must be specified for function "ISNAN".
    f90comp: 3810 SOURCE LINES
    f90comp: 2 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
    gmake: *** [main.o] Error 1
    why is it not recognizing isnan() as intrinsic function.

    I am having the same problem. I am using ISNAN() on the pc. When I ported my code to the Sun Solaris Fortran I wrote a little function:
    FUNCTION HEC_ISNAN (X)
    LOGICAL HEC_ISNAN
    REAL X
    INTEGER isn
    isn = 0
    isn = IR_ISNAN(X)
    HEC_ISNAN = .FALSE.
    IF (isn /= 0) HEC_ISNAN = .TRUE.
    RETURN
    That worked fine. I copied everything over to a Sun Linux Fortran and now I am getting:
    hec_lib_call.o(.text+0x5b6): In function `hec_isnan_':
    : undefined reference to `ir_isnan_'
    make: *** [steadyx] Error 1
    I tried the above suggestion about using ieee_is_nan,
    FUNCTION HEC_ISNAN (X)
    USE, INTRINSIC :: IEEE_ARITHMETIC, IEEE_EXCEPTIONS
    ~code not shown
    isn = ieee_is_nan(X)
    and I get the following:
    USE, INTRINSIC :: IEEE_ARITHMETIC, IEEE_EXCEPTIONS
    ^
    "hec_lib_call.f", Line = 205, Column = 58: ERROR: Unexpected syntax: "=>" was expected but found "EOS".
    isn = ieee_is_nan(X)
    ^
    "hec_lib_call.f", Line = 218, Column = 12: ERROR: Assignment of a LOGICAL expression to a INTEGER variable is not allowed.
    If I take the USE... statement out, it does not find the ieee_is_nan call. Am I missing something? I'm not familiar with either the Sun or the Linux environment.
    I'm using Sun Studio 12 for Linux.
    Thanks for any help.

  • IsNaN

    Hi,
    I am new to Java and have no idea how to use the isNaN function to determine whether a double value is not a number?
    My idea would be to use an if statement..
    if (isNaN(somenumber))
    do something
    }Where am I going wrong?
    Thanks
    Message was edited by:
    Jim2580

    if (Double.isNaN(someDouble))because that method is defined in the Double class. If you don't prefix it with a classname (static methods) or reference (non-static), then it implies that method or member variable is defined in your current class.

  • Drawing API  animate??

    Hi guys, i have only recently started with Drawing API, and
    im getting the hang of it. But i was wondering if it's possible to
    tween the lineTo method??
    for example, im rounded rectangle at runtime, but i dont want
    it to just " appear " , say i wanted it to " draw it's self "
    like tween the outline first, then fade in the fill.
    is that possible? if so, what code would i use to animate the
    drawing process?
    Thanx guys.

    Sketchsta,
    > Hey David, i only just saw your post after i replyed..
    uum,
    > could you give be the basis of how to use the
    setInterval ?
    The setInterval() function can be run in more than one way.
    The basic
    way is to provide it two parameters: a) another function to
    run, and b) a
    time interval at which to run this other function. That's
    really all there
    need be to it.
    > cuz i only used it once, but i didnt know how to stop
    it, it
    > kept going forever, till my com was struggling.. then i
    found
    > clear() ... now my comp has no problem, but i still cant
    > stop the line.. anyway, off the point...
    That's not off the point. ;) Sounds like that's exactly what
    you need
    to figure out now. The clearInterval() function stops a
    particular
    setInterval() loop. How does it know which loop to stop? The
    answer is,
    you provide clearInterval() with a number. This works a bit
    like those
    lines at the deli section where you "take a number" and they
    eventually call
    it.
    setInterval() provides a return value, just like many (but
    not all)
    functions. The getTimer() function, for example, returns a
    number that
    represents how many milliseconds have passed since the Flash
    movie began.
    The isNaN() function returns a Boolean (true or false) value
    that tells
    whether a given value is "not a number." Well, setInterval()
    returns a
    value that indicates the number of its latest usage. The
    first time you use
    setInterval(), it sets up a scenario whereby it repeatedly
    calls the
    function you pass it at the time interval you pass it. This
    is the first
    such scenario, and so the number it returns is 1. The next
    time you use
    setInterval(), it sets up a second scenario -- calling some
    other function
    you provide, or the same one -- and this time it returns 2.
    The third time,
    3, and so on.
    Conveniently, you don't have to keep track of this. You can
    store the
    return value of setInterval() in a variable and use the
    variable as a
    parameter to clearInterval().
    > could you give me an example of how to set it up?
    var id:Number = setInterval(drawingFunctionHere, 30);
    In the above line, an arbitrarily named variable id (which
    will be a
    number) is set to the return value of setInterval(), which in
    this case
    calls an arbitrarily named function, drawingFunctionHere
    every 30
    milliseconds. Whenever you see fit (such as when your drawing
    is finished,
    and only you'll know that), you can call clearInterval() and
    pass in that id
    variable.
    clearInterval(id);
    That stops the repeated call to drawingFunctionHere(). Of
    course, the
    first time around, you could use clearInterval(1) -- but
    again, there's just
    no reason to keep track of the interval numbers yourself. You
    can re-use
    that id variable as often as you need.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Comparing NaN

    I need to compare two big arrays of double which may contain items set to not-a-number (NaN).
    When both arrays contain NaN items, the comparison should yield "equal" if all NaN elements are placed at the same index position and, of course, if all numeric items (elements that are not NaN) are equal.
    Unfortunately this is not the standard behavior: if you compare two NaNs, LabVIEW yields "different" with the standard operator.
    I have tried "flattening" to string both arrays before the comparison in order to achieve the expected behaviour. However in this case the performance is very poor (350ms to compare 1MB of data).
    Finally I had to implement an external DLL function that merely yields the result of the "memcmp" C function. In this way comparing 1M
    b of data requires at the most 100ms.
    Isn't there a more elegant way in LabVIEW to obtain the same result?

    > I need to compare two big arrays of double which may contain items set
    > to not-a-number (NaN).
    > When both arrays contain NaN items, the comparison should yield
    > "equal" if all NaN elements are placed at the same index position and,
    The equals node in LV act the way it does because that is the way IEEE
    defines it. The string comparison is a good idea, but most of the time
    is being spent converting the data into a string and possibly swapping
    bytes.
    Another approach, that will probably be faster is to do a simple
    comparison first, but when it returns false, look at the elements that
    are FALSE and see if both are NaNs. If there aren't that many NaNs, it
    should go pretty quick. To get the more detailed equals data, popup on
    the equals node and turn
    on Compare Aggregates. This will now return an
    array of Booleans instead of a single one. You can either loop through
    or search for FALSE. The index returned can be used to index the input
    elements and see if they are both NaN using the IsNan function.
    Of course if you want to use a DLL and C code to do the comparison, that
    will work too and will probably be even faster.
    Greg McKaskle

  • Capture something like '0 '

    Hello All,
    I need to validate a field value if its a number or not in javascript.
    I used the isNaN function & it validates correctly for inputs like *, 'a' etc..
    But it doesnt work for an input like '0 '. Please note that the 0 is followed by a single space. How to validate such entries?
    Regards,
    Sharat

    Javascript doesn't natively provide trim functionality to the String object.
    To solve this, place the following code near the top of your Javascript file to add trim() functionality
    String prototype.trim = function() {
        a = this.replace(/^\s+/, '');
        return a.replace(/\s+$/, '');

  • Count Field Calculation

    Hello and thank you in advance for your time. I am looking for a formula that will count the number of fields containing text.
    Example:
    Field1 = "text"
    Field2 = "text"
    Field2 = "text"
    TotalCount = 3
    Any assistance will be greatly appreciated.
    Thank you again and have a great day!

    If the fields are formatted as a numeric value, then using the 'valueAsString' property will detect a null field and allow one to test for the null value. If the 'valueAsString' was not used the null value would equate to zero.
    There is no non-constrictor function of "NaN()' , it is "isNaN()' or is Not A Number function.
    Core Function
    Evaluates an argument to determine if it is not a number.
    Syntax
    isNaN(testValue)
    Parameters
    testValue 
    The value you want to evaluate.
    Description
    isNaN is a top-level function and is not associated with any object.
    isNaN attempts to convert the passed parameter to a number. If the parameter can't be converted, it returns true; otherwise, it returns false. CAVEAT : if the parameter is null or an empty string or unicode spaces, it returns false !
    So if you are trying to eliminate field that have no imput, a null, value, you can not use the 'isNaN()' function.

  • Price validation........

    Hi All,
    Anybody please tell me what is wrong with the folllowing code.
    it is giving javascript error.
    isNaN() is not working.
    Well I have placed the same code in java script forum but nobody have answered.
    Please reply soon.
    <html>
    <head>
    </head>
    <script language="javascript">
    function validation() {
    var price=document.name1.price.value;
    if(price.isNaN()) {
    alert("hello");
    </script>
    <form name="name1" method="post" action="a1.jsp" onsubmit="return
    validation()">
    <input type="text" name="price">
    <input type="submit" value="submit">
    </form>
    </html>

    two second goggle for isNaN gets
    The isNaN function is used to determine if the argument, testvalue, is a NaN.
    A NaN, which means "Not-a-Number", is classified as a primitive value by the ECMA-262 standard and indicates that the specified value is not a legal number. The function returns true if the argument is not a number and false if the argument is a number.
    The classic example of a NaN is zero divided by zero, 0/0.
    bloody amazing things is computiers

  • Weight calculator

    I am trying to create a very simple calculator. Basically the
    user places in the height, weight and length and then this will
    determine the price.
    However, I have no idea whatsoever. I know a bit about flash
    but this is a little bit advanced. Dopes anyone know any serial
    numbers or templates that I could modify? The guy ho wants it has
    already made it in excel, so I know what data to put in.
    Any help would be really really appreciated.
    Thanks
    George

    you can use the onChanged() method of the textfield to check
    if the text property of your textfields are numbers using the
    isNaN() function and if so, apply your calculation to the text
    property converted to numbers (using the Number() function).

  • Need Help With Check Box count Script

    Need to count the number of checked boxes. I'm using the script below and its not working. What I'm I doing wrong? It's driving me crazy.
    // document level function to sum named fields
    function Sum(aFieldNames) {
    var sum = 0; // sum of values
    // loop through fields
    for (var i = 0; i < aFieldNames.length; i++) {
    if(!isNaN(this.getField(aFieldNames[i]).value) )
    sum += Number(this.getField(aFieldNames[i]).value);
    return sum;
    } // end of Sum function
    // array of field names sum
    var aCheckBox = new Array('Check Box5', 'Check Box8', 'Check Box11', 'Check Box16', 'Check Box19','Check Box22', 'Check Box25','Check Box28', 'Check Box31', 'Check Box34','Check Box37', 'Check Box40','Check Box43', 'Check Box46', 'Check Box49','Check Box52', 'Check Box55','Check Box58', 'Check Box61', 'Check Box64','Check Box68');
    // sum named fields
    event.value = Sum(aCheckBox);

    Then why are you checking if they're a number by using the isNaN function, and then trying to add that number to the sum variable? It looks like you just copied the code from somewhere else, even though it doesn't apply to your situation.
    Replace those two lines of the code with this:
    if (this.getField(aFieldNames[i]).value!="Off") sum++;

  • Restricted numbers

    Hello,
    I need to create an input text field that allowes numbers to
    be only between letters.
    for example: LLNNNL or LLNNLLNNLLL - is allowed, but NLLL or
    LLLN or NNLLLN isn't.
    any ideas?

    if N is a number and L is a letter, both your allowed
    examples show numbers that are NOT between letters.
    looking at your examples, it appears that numbers can be
    placed anywhere except at the beginning and end of a string. and
    that should be easy to determine using the flash string methods and
    isNaN() function().

  • Urgent  javascript function is not being called

    I have the code as below html and jsp and i want the validation to be done before submission of the form can anybody help me how to solve.
    thanks in advance.
    regards,
    srikanth
    ----(NPV.html code)----
    <HTML>
    <script type="text/javascript" language="javascript">
    function Calc(oForm) {
    var el, msg = 'The following entries are invalid:\n';
    msg += '______________________________\n\n';
    var firVal = parseDouble(oForm.first.value, 10);
    if (isNaN(firVal)) {
    msg += '\First \n';
    if (!el) el = oForm.first;
    var secVal = parseDouble(oForm.second.value, 10);
    if (isNaN(secVal)) {
    msg += '\Second\n';
    if (!el) el = oForm.second;
    var thVal = parseDouble(oForm.third.value, 10);
    if (isNaN(thVal)) {
    msg += '\Third \n';
    if (!el) el = oForm.third;
    var forVal = parseDouble(oForm.fourth.value, 10);
    if (isNaN(forVal)) {
    msg += '\Fourth\n';
    if (!el) el = oForm.fourth;
    var fifVal = parseDouble(oForm.fifth.value, 10);
    if (isNaN(fifVal)) {
    msg += '\Fifth\n';
    if (!el) el = oForm.fifth;
    if (el) {
    msg += '\nPlease correct and re-submit.';
    alert(msg);
    el.focus();
    el.select();
    return false;
    </SCRIPT>
    <BODY>
    <FORM name=npv method=GET action="NPV_Calculate.jsp" onsubmit="return Calc(this)">
    <table align=center>
    <tr>
    <td>
    Enter First no :</TD>
    <TD><input type=TEXT name=first>
    </TD>
    </tr>
    <tr>
    <td>
    Enter Second no :</TD>
    <TD><input type=TEXT name=second>
    </TD>
    </tr>
    <tr>
    <td>
    Enter Third no :</TD>
    <TD><input type=TEXT name=third>
    </TD>
    </tr>
    <tr>
    <td>
    Enter Fourth no :</TD>
    <TD><input type=TEXT name=fourth>
    </TD>
    </tr>
    <tr>
    <td>
    Enter Fifth no :</TD>
    <TD><input type=TEXT name=fifth>
    </TD>
    </tr>
    <tr>
    <td>
    <INPUT type=SUBMIT ></TD></TR>
    </TABLE>
    </FORM>
    </BODY>
    </HTML>
    (NPV_Calculate.jsp)
    <%@page contentType="text/html"%>
    <%@page import="java.util.*"%>
    <html>
    <head><title>JSP Page</title></head>
    <body>
    <%!int one,two,three,four,five=0 ;
    double NPV=0;
    ArrayList al;
    boolean flag=true;
    public void Calculation(ArrayList al1)
    double r = .06;
    double no=1;
    double no1=0;
    double total = 1+r;
    for(int i= 0;i<al1.size() ;i++)
    total =no *total;
    no=1+r;
    NPV= new Double(al1.get(i).toString()).doubleValue()/total;
    NPV= no1 + NPV;
    no1=NPV;
    %>
    <%
    al =new ArrayList();
    try{
    al.add(0,request.getParameter("first"));
    al.add(1,request.getParameter("second"));
    al.add(2,request.getParameter("third"));
    al.add(3,request.getParameter("fourth"));
    al.add(4,request.getParameter("fifth"));
    }catch(NumberFormatException e)
    {flag = false;%>
    <%="Invalid values entered" %> <br>
    <a href= NPV.html>Click here to reenter Pl.. </A>
    <%}
    if(flag){
    Calculation(al);
    out.println("Result: "+ NPV);
    %>
    </body>
    </html>

    ya, i got my problem solved not only by making parseDouble to parseFloat but also making the input type = button (instead of submit) and submiting the form through javascript. i don't know why it is not working when it is a submit button.
    thanks..

  • Repeat / Restart Function on Condition

    Hello,
    I am attempting to put a statement in my .mxml file to make a private function restart if a certain condition is met.  I am not pro at coding in .mxml, but I believe I have a start at solving this issue.  Below it the code for my function, up to the point that the code would restart, if the condition is true:
    The last five lines are devoted to making the function restart itself if the condition 'mapServicesArray.length < 13'.  The line 'init (private function populateLayerDataDictionary);' is supposed to trigger the restart, but I am not sure how to do it (this code clearly doesn't, it is a test of mine).  Any advice would be welcome. 
    Thank you in advance! (and sorry for my poor code formatting in this post!)

    Here is the code to the function as I have it so far:
       private function populateLayerDataDictionary():void
        //the smallest and largest scales reasonably possible
        var smallestScale:Number = map.lods ? map.lods[0].scale : 1000000000;
        var largestScale:Number = map.lods ? map.lods[map.lods.length - 1].scale : 1;
        var data:Object;
        var priority:int = 0;
        var agsVersion:Number;
        // The next line controls whether the proxy in the <httpproxy> tag in config.xml
        // is used for each layer.  If want this set it to true; otherwise set it to false.
        // If there is no <httpproxy> tag in config.xml then the value of useProxy doesn't matter.
        var useProxy:Boolean = true;
        for each (var layer:Layer in map.layers)
         trace(layer.id);
         if (layer is ArcGISDynamicMapServiceLayer)
          var dmsLayer:ArcGISDynamicMapServiceLayer = layer as ArcGISDynamicMapServiceLayer;
          if (useProxy) dmsLayer.proxyURL = configData.proxyUrl;
          agsVersion = dmsLayer.version;
          if (isNaN(agsVersion))
           // This happens if the map includes a service that is turned off or doesn't exist
           mapServicesProcessed++;
           continue;
          //make an object for this map service to hold the layer information
          var dmsMapServiceObj:Object = {id: dmsLayer.id, layers: new Array(), priority: priority++, url: dmsLayer.url, token: dmsLayer.token, proxyUrl: dmsLayer.proxyURL};
          //add the map service object to the array of map services
          mapServicesArray.push(dmsMapServiceObj);
          // set the max and min scales
          var maxScale:Number = layer.maxScale;
          var minScale:Number = layer.minScale;
          var getScales:Boolean = (maxScale == 0 && minScale == 0);
          if (getScales)
           for each (var layerInfo:LayerInfo in dmsLayer.layerInfos)
            if (layerInfo.maxScale > 0 && (maxScale == 0 || layerInfo.maxScale < maxScale)) maxScale = layerInfo.maxScale;
            if (layerInfo.minScale > 0 && layerInfo.minScale > minScale) minScale = layerInfo.minScale;
           layer.maxScale = maxScale > 0 ? maxScale : largestScale;
           layer.minScale = minScale > 0 ? minScale : smallestScale;
          data = {name: dmsLayer.name, url: dmsLayer.url, token: dmsLayer.token, rtDefExpr: "", proxyUrl: dmsLayer.proxyURL};
          dmsLayer.getAllDetails(new AsyncResponder(onResult, onFault, data));
         else if (layer is ArcGISTiledMapServiceLayer)
          var tmsLayer:ArcGISTiledMapServiceLayer = layer as ArcGISTiledMapServiceLayer;
          if (useProxy) tmsLayer.proxyURL = configData.proxyUrl;
          agsVersion = tmsLayer.version;
          if (isNaN(agsVersion))
           // This happens if the map includes a service that is turned off or doesn't exist
           mapServicesProcessed++;
           continue;
          //make an object for this map service to hold the layer information
          var tmsMapServiceObj:Object = {id: tmsLayer.id, layers: new Array(), priority: priority++, url: tmsLayer.url, token: tmsLayer.token, proxyUrl: tmsLayer.proxyURL};
          //add the map service object to the array of map services
          mapServicesArray.push(tmsMapServiceObj);
          if (layer.maxScale == 0 && layer.minScale == 0 && tmsLayer.tileInfo)
           layer.maxScale = tmsLayer.tileInfo.lods[tmsLayer.tileInfo.lods.length - 1].scale;
           layer.minScale = tmsLayer.tileInfo.lods[0].scale;
          data = {name: tmsLayer.name, url: tmsLayer.url, token: tmsLayer.token, rtDefExpr: "", proxyUrl: tmsLayer.proxyURL};
          tmsLayer.getAllDetails(new AsyncResponder(onResult, onFault, data));
         else if (layer is FeatureLayer)
          var feaLayer:FeatureLayer = layer as FeatureLayer;
          var layerDetails:LayerDetails = feaLayer.layerDetails;
          var tableDetails:TableDetails = feaLayer.tableDetails;
          if (layerDetails)
           agsVersion = layerDetails.version;
          else if (tableDetails)
           agsVersion = tableDetails.version;
          else
           agsVersion = NaN;
          if (isNaN(agsVersion))
           // This happens if the map includes a service that is turned off or doesn't exist
           mapServicesProcessed++;
           continue;
          var url:String = feaLayer.url;
          var pos:int = url.lastIndexOf("/");
          url = url.slice(0, pos);
          //make an object for this map service to hold the layer information
          var feaMapServiceObj:Object = {id: feaLayer.id, layers: new Array(), priority: priority++, url: url, token: feaLayer.token, proxyUrl: feaLayer.proxyURL};
          //add the map service object to the array of map services
          mapServicesArray.push(feaMapServiceObj);
          data = {name: feaLayer.name, url: url, token: feaLayer.token, rtDefExpr: feaLayer.definitionExpression, proxyUrl: feaLayer.proxyURL};
          var allDetails:AllDetails = new AllDetails();
          allDetails.layersDetails = [layerDetails];
          allDetails.tablesDetails = [tableDetails];
          onResult(allDetails, data);
         else
          // skip other kinds of layers (e.g. image services)
          mapServicesProcessed++;
         // restarts and repeats populateLayerDataDictionary if there are missing services
         if (mapServicesArray.length < 13)
          init (private function populateLayerDataDictionary);

  • Fax function of HP LaserJet Enterprise 500 Color MFP M575

    Hi,
    I am one of users of HP LaserJet Enterprise 500 Color MFP M575​.
    I would like to know can I set the printer do not print my fax number and fax header on paper when I fax my document to others.
    I had login as admin but I did not see where I can config it.
    Thank you.
    Regards,
    Jimmy Pun

    There is no change to this problem after 6 months since the last post. Put simply, and as stated in the previous posts, there is no way to scan a document and receive the image on your PC. If you are working with graphics for any length of time or want to create an image for inclusion as an image in a document or web page using this piece of equipment will not allow you to do so.
    Great shame as every other function works well - it cannot be beyond the wit of HP to include a Windows application that enables you to scan an image, receive it in the software you are using at the time (e.g. Outlook, Word, Photoshop...) and use it in your work.
    HP Printers several years older than this £1000+ Enterprise printer were able to do this simple job and have done so for a great many years. Just being able to use Microsoft's Fax and Scan would be start.

  • Logical Operations in SQL decode function ?

    Hi,
    Is it possible to do Logical Operations in SQL decode function
    like
    '>'
    '<'
    '>='
    '<='
    '<>'
    not in
    in
    not null
    is null
    eg...
    select col1 ,order_by,decode ( col1 , > 10 , 0 , 1)
    from tab;
    select col1 ,order_by,decode ( col1 , <> 10 , 0 , 1)
    from tab;
    select col1 ,order_by,decode ( col1 , not in (10,11,12) , 0 , 1)
    from tab;
    select col1 ,order_by,decode ( col1 ,is null , 0 , 1)
    from tab;
    Regards,
    infan
    Edited by: user780731 on Apr 30, 2009 12:07 AM
    Edited by: user780731 on Apr 30, 2009 12:07 AM
    Edited by: user780731 on Apr 30, 2009 12:08 AM
    Edited by: user780731 on Apr 30, 2009 12:08 AM
    Edited by: user780731 on Apr 30, 2009 12:09 AM

    example:
    select col1 ,order_by,case when col1 > 10 then 0 else 1 end
    from tab;
    select col1 ,order_by,case when col1 &lt;&gt; 10 then 0 else 1 end
    from tab;
    select col1 ,order_by,case when col1 not in (10,11,12) then 0 else 1 end
    from tab;As for testing for null, decode handles that by default anyway so you can have decode or case easily..
    select col1 ,order_by,decode (col1, null , 0 , 1)
    from tab;
    select col1 ,order_by,case when col1 is null then 0 else 1 end
    from tab;

Maybe you are looking for

  • Jack on the dock is bent and now will not sync to computer

    I've enjoyed my new Shuffle. However, the other day, the jack on my little iPod Shuffle dock was bent. Now, the dock refuses to recognize my iPod. Is there a way to fix this, or will my warranty cover it? I really REALLY don't want to spend $35 on a

  • Using pre-query with 2 characteristics in rows?

    Hi @all, I need your help regarding the following problem: There are multiple conditions in one query, I'd like to do in a certain sequence. Because these multiple conditions in BEx where processed as "AND", for example companies must be part of the

  • Exclude specific schema using EXPDP

    Hello , Can anyone tell me have to exclude specific schema in full expdp of the database i am using aix 5.3 and 10.2.0.4.0 Regard

  • Hi could anyone help me with my toshiba satellite m305d-s4830

    hi im johann from the philippines my laptop (a toshiba satellite m305d-s4830) came from the u.s. from my cousin and i don't have much support from toshiba here because it does not have warranty or anything so i was wonderin about two things.. first i

  • What the function of product allocation firming

    hi gurus, a question about prodcut allocation. in mc94, what's the function in setting - firming: the switch-on, swich-off and unfirm period? is there anyone has some idea on that. thanks a lot.