Geeks Talk

Prepare for your Next Interview




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 FAQ Members List 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: 754
Thanks: 22
Thanked 64 Times in 63 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,432
Thanks: 8
Thanked 126 Times in 113 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
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: 447
Thanks: 20
Thanked 54 Times in 54 Posts
susarlasireesha is on a distinguished road
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: 754
Thanks: 22
Thanked 64 Times in 63 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 7 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


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:30 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved