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!

How To Filter Blank Dates in Query

Status
Not open for further replies.

trbyrne

IS-IT--Management
Jul 5, 2007
60
0
0
US
I have a table that contains a date field (dtnDOB). I want to pull all records from this table that have a value in this field. I've tried the following queries with no luck:

select * from <table> where dtndob<>''
select * from <table> where dtndob<>0
select * from <table> where dtndob>0

I'm not sure how to for the WHERE clause so that the result set excludes blank dates.
 
I forgot to mention that the dtnDOB field allows null values, and I am using PSQL v 8.6.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top