I did try and remove the 'from eligibilityhistory' and that didn't work. Then I get this error message: Server: Msg 156, Level 15, State 1, Line 4
Incorrect syntax near the keyword 'inner'.
I am using SQL Query Analyzer for running queries. I examine my database structure with Enterprise Manager.