Please start any new threads on our new
site at http://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Our new SQL Server Forums are live!
Come on over! We've restricted the ability to create new threads on these forums.
Posting Yak Master
Flowing Fount of Yak Knowledge
select top (1) b.assessment_date
from assessment_table b
where b.assessment_date <= a.date_month
order by b.assessment_date desc
Very Important crosS Applying yaK Herder
from CalendarTable f
INNER JOIN assessment_table t
ON t.assessment_date = (SELECT TOP 1 assessment_date
ORDER BY assessment_date DESC)