I have 3 tables (called Dates, Bond Deals and EICC pricing) in Access in SQL and I am trying to create the following query with 3 joints. First I am trying to do two inner joints, one between the Dates table Bond Deals table using columns Data Date and Data Date and one between Dates and EICC pricing using columns Price Date (EICC) and PriceDate. Finally I want to do a left outer join on the outcome of the two, where everything from the first inner joint query is included. I put together the following code, however, it does not work. I understand that the problem lies with the last part of the code, however, do not know how to fix it. Can anyone help me?
Code:
From (Dates INNER JOIN [Bond deals] on [Bond Deals].[Data Date] = Dates.[Data Date]) LEFT OUTER JOIN ([EICC pricing] INNER JOIN Dates on Dates.[Price Date (EICC)]= [EICC pricing].[PriceDate]) on [Bond deals].Bond = ([EICC pricing] INNER JOIN Dates on Dates.[Price Date (EICC)]= [EICC pricing].[PriceDate]).Bonds_ShortName