Nov 4, 2003 #1 sezme Programmer Oct 31, 2003 26 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
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
Nov 4, 2003 #2 JamesLean Programmer Dec 13, 2002 3,059 GB 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 Upvote 0 Downvote
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
Nov 4, 2003 Thread starter #3 sezme Programmer Oct 31, 2003 26 GB that works - thanks Upvote 0 Downvote