Nice work - thanks for posting back.
May I suggest that you consider using table aliases - it will make your query much more readable. Eg
select t.col1, t.col2 from tablewithaverylongnameindeedohyes t
--rather than
select tablewithaverylongnameindeedohyes.col1, tablewithaverylongnameindeedohyes.col2 from tablewithaverylongnameindeedohyes
If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.