Skip to Content
author's profile photo Former Member
Former Member

HOW TO DIFFERENTIATE BETWEEN 0 AND NULL IN NUMC TYPE!!!!!!! URGENT

iN A SCREEN I HAVE A FIELD OF TYPE NUMC.

NOW I NEED TO DIFFENTIATE BETWEEN THE VALES '0' AND NULL FOR THIS FIELD .

HOW CAN THIS BE DONE.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Nov 21, 2007 at 06:25 AM

    Hi,

    For type numc both are one as the same.

    Regards,

    prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 06:30 AM

    if you have NULL valued fields. If

    you do a compare and one or both are NULL, then the result is always NULL,

    never true or false. Even comparing two fields which are both NULL will

    give NULL as result, not true! Or if you have something like "select

    sum(field) from ..." and one or more are NULL, then the result will be

    NULL. Use always "if field is NULL ..." for NULL checking and for safety

    maybe something like "select sum( IsNull(field,0) ) from ...". Check the

    function ISNULL() in the manual.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.