sql server - Debugging Ambiguous outer join statement -
i new ms office access , having problems constructing sql view query . keep getting error : "the sql statement not executed because contains ambiguous outer join. force 1 of joins performed , create seperate query performs first join , include query in sql statement".
1) how create seperate query in ms sql view , include query main sql statement???
2) cant understand why error occuring ??
select [table : purchasedetails].purchaseid [table: supplier] left join ([table : purchase] left join ([table : product] left join [table : purchasedetails] on [table : product].productid = [table : purchasedetails].productid) on [table : purchase].purchaseid = [table : purchasedetails].purchaseid) on [table: supplier].supplierid = [table : purchase].supplierid;
i'm not sure access, in sql on command should follow join, so:
select [table : purchasedetails].purchaseid [table: supplier] left join [table : purchase] on [table : purchase].purchaseid = [table : purchasedetails].purchaseid left join [table : product] on [table : product].productid = [table : purchasedetails].productid left join [table : purchasedetails] on [table: supplier].supplierid = [table : purchase].supplierid;
Comments
Post a Comment