hmmm. What is the relationship tblPatientVisit and tblPtmstr? Assuming that there is a relationship between the 2 tables based on the column MRNumber this should work:
SELECT
v.MRNumber,
p.ZipCode
FROM tblPatientVisit v
LEFT JOIN tblPtmstr p on v.MRNumber = p.MRNumber
WHERE Convert(varchar(10), v.VisitDate, 101) = '01/01/2005'
hth
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========