Outer Join

G

Guest

Help! I'm hitting a brick wall. I need to create a full outer join from 2
tables called inventory and aw pc assets but cannot get my syntax to work.
Here's what I have. Can someone please assist?

SELECT Inventory.*,Aw pc assets.*
FROM Inventory AS Inventory LEFT JOIN
Aw pc assets AS Aw pc assets ON Inventory.ID =Aw pc assets.ID
UNION ALL
SELECT Inventory.*, Aw pc assets.*
FROM Inventory AS Inventory RIGHT JOIN
Aw pc assets AS Aw pc assets ON Inventory.ID = Aw pc assets.ID
WHERE Inventory.ID Is Null;
 
M

Michel Walsh

Use [ ] around the illegal table name (and also illegal as alias): Ac pc
assets

(8 places)

SELECT Inventory.*,[Aw pc assets].*
FROM Inventory AS Inventory LEFT JOIN
[Aw pc assets] AS [Aw pc assets] ON Inventory.ID =[Aw pc assets].ID
UNION ALL ...



Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top