Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple select statement 1

Status
Not open for further replies.

kingstonr

Programmer
Dec 5, 2005
26
US
attr
-----
a
c
d
null
null

select * from tablename where attr <> 'c'

I am selecting like above from table.
In my result set I am getting only a & d.
Null values are not showing.can anybody help me how to
get the null values also.

 
Code:
select * 
       from tablename
       where attr <> 'c' OR Attr IS NULL
NULL vaues are not equal AND not different than 'C' they are just DON"T KNOW values. So you must thread them very carrefuly.


Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
MVP VFP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top