Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Null V Nothing

This is a discussion on Null V Nothing within the SQL forums, part of the Databases category; 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 ...

Go Back   Geeks Talk > Databases > SQL
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 03-13-2008
Junior Member
 
Join Date: Mar 2008
Location: Sydney
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
dubdownunder is on a distinguished road
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-14-2008
Expert Member
 
Join Date: Sep 2007
Posts: 738
Thanks: 22
Thanked 67 Times in 65 Posts
krishnaindia2007 is on a distinguished road
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
Reply With Quote
  #3 (permalink)  
Old 03-14-2008
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,853
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: Null V Nothing

both NULL and nothing represents absence of data.

Null is used in databases to represent nothing .
Reply With Quote
  #4 (permalink)  
Old 03-15-2008
Expert Member
 
Join Date: Apr 2007
Location: Bangalore
Posts: 517
Thanks: 30
Thanked 63 Times in 61 Posts
susarlasireesha will become famous soon enough
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
Reply With Quote
  #5 (permalink)  
Old 03-19-2008
Expert Member
 
Join Date: Sep 2007
Posts: 738
Thanks: 22
Thanked 67 Times in 65 Posts
krishnaindia2007 is on a distinguished road
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 ?
Reply With Quote
  #6 (permalink)  
Old 03-27-2008
Junior Member
 
Join Date: Feb 2008
Posts: 29
Thanks: 3
Thanked 8 Times in 6 Posts
trainee_tester is on a distinguished road
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
Reply With Quote
Reply

  Geeks Talk > Databases > SQL

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
null statement in c ShrutiS C and C++ 6 03-18-2008 09:41 AM
Set columns as not null jency SQL 2 12-06-2007 01:12 AM
Not null constraint Geek_Guest SQL Server 2 10-17-2007 07:05 AM
null pointer vasundhara.jagdale C and C++ 1 07-23-2007 01:38 AM
Built-in and plugin stages, Chaning Null to Not Null and Types of lookup Geek_Guest Data Warehousing 0 04-06-2007 04:48 AM


All times are GMT -4. The time now is 08:53 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved