Results 1 to 6 of 6

Thread: Null V Nothing

  1. #1
    Junior Member
    Join Date
    Mar 2008
    Answers
    1

    Null V Nothing

    Can anyone clearly explain what the difference between null and nothing? On the 100 question quiz it states that null in sql represents nothing but I have also read that a null is an uninitialised variable and can be tested for using isnull(var) and nothing is nothing and can be tested for using isnothing(var). So what is the difference between null and nothing??

    Thanks


  2. #2
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Re: Null V Nothing

    Quote Originally Posted by dubdownunder View Post
    Can anyone clearly explain what the difference between null and nothing? On the 100 question quiz it states that null in sql represents nothing but I have also read that a null is an uninitialised variable and can be tested for using isnull(var) and nothing is nothing and can be tested for using isnothing(var). So what is the difference between null and nothing??

    Thanks
    In oracle there is no difference between null and nothing. Null is nothing but absence of value. For detailed explanation follow the link

    http://thinkoracle.blogspot.com/2005...s-nothing.html


  3. #3
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Null V Nothing

    both NULL and nothing represents absence of data.

    Null is used in databases to represent nothing .


  4. #4
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Null V Nothing

    Null in oracle is an absence of information. A null can be assigned but it can not be equated with anything: even itself.
    A null is not equla to 0
    a null is not equal to nothing
    a null is not an empty string
    null is an unknown value


  5. #5
    Expert Member
    Join Date
    Sep 2007
    Answers
    697

    Re: Null V Nothing

    Quote Originally Posted by susarlasireesha View Post
    Null in oracle is an absence of information. A null can be assigned but it can not be equated with anything: even itself.
    A null is not equla to 0
    a null is not equal to nothing
    a null is not an empty string
    null is an unknown value
    null is not equal to nothing ?

    Is there any difference between these words
    nothing
    no value
    absence of value


    If there is nothing in a column how will you find it out without using IS NULL ?


  6. #6
    Junior Member
    Join Date
    Feb 2008
    Answers
    25

    Re: Null V Nothing

    NULL means "Not Known".
    Not knowing something is very different from knowing that something is nothing (for which the empty string '' is provided)!

    here(in sql) nothing indicates blank (we dont enter either keyword "NULL" or any number)

    Thanks & Regards
    Trainee_tester


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact