I have two queries that are what I consider to be quite simple. When I run aAlda1 and alda2 everything works ok. When I try to bring the two together it appears that the query is too complex. Do not know where to start to investigate why it is too complex.
The intent of the query is combine the number of positions and their costs by program, subprogrma nad account (Line Seq Description) over two fiscal years.
Code:
SELECT qAlda1.Name, qAlda1.FTE AS [FY 2013 FTE], qAlda1.Cost AS [FY2013 Cost], qAlda1.Source, qAlda2.[Line Seq Descrpition], qAlda2.Program, qAlda2.[Sub-Program]
FROM (qAlda1 INNER JOIN qAlda2 ON (qAlda1.Account = qAlda2.RIFANS) AND (qAlda1.Name = qAlda2.Name)) INNER JOIN qAlda3 ON qAlda1.Name = qAlda3.Name;