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

newbie sql question

Status
Not open for further replies.

sezme

Programmer
Oct 31, 2003
26
0
0
GB


I have a select statement

Select dbID, dbName From dbTable

what i want to do is only dbName when it has a value
ie when it is not empty

I have tried

Select dbID, dbName From dbTable Where dbName Is Not Null

but no success

thanks in advance

 
Your query looks fine to me. I can only imagine your "empty" values are actually zero-length strings. Try:

Code:
Select dbID, dbName From dbTable Where dbName = ''

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top