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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -