What does SELECT PatientKey = P.PatientKey, AgeKey = PM.AgeKey ... mean - in a SELECT query that is? are the assignments just ignored?
Its practiacally the same as doing : Select P.PaitentKey AS PatientKey,.......
_________________________________________________________________________
SSC Guide to Posting and Best Practices