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!

Finding for empty email fields 1

Status
Not open for further replies.

Jimmy2128

Programmer
Feb 6, 2003
58
0
0
US
I am trying to find all our members that has not email address under the email field. I have the following script

select n.id,n.full_name, n.email, n. member_status,n.Member_type, n.company
from name n
where n.email = ''

Would you please tell me if make sense.

Thanks

Jimmy
 
It looks ok. I would suggest a small change. email = '' will new return results where the email field is null, so...

select n.id,n.full_name, n.email, n. member_status,n.Member_type, n.company
from name n
where [red]IsNull(n.email, '')[/red] = ''

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top