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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with NULLS 1

Status
Not open for further replies.
Mar 17, 2005
147
US
How would I write a select to exclude both NULLs and records from a table where there is absolutly nothing in there not even the word <NULL>?

Select * from Table
WHERE table.record1 <> ???

Thanks
 
This will also work.
Code:
select *
from table1
where Col1 is not null
and Col1 <> ''

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(Not quite so old any more.)
 
yeah, it'll work, but it's more verbose, eh ;-)

i like this part -- Col1 <> ''

wouldn't this suffice -- Col1 > ''

when have you ever seen a string value < ''

:)

r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top