Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access Query
Message
 
 
À
30/06/2010 00:53:17
Rahul Murarka
Sys-Con Engineering
Kolkata, Inde
Information générale
Forum:
Microsoft Office
Catégorie:
Access
Titre:
Versions des environnements
Microsoft Office:
Office 2007
Divers
Thread ID:
01470768
Message ID:
01471076
Vues:
36
>Madam
>
>Full Outer Join is not working MS Access . I think it works only on SQL Server.
>
>Help

Sorry, I was not aware Access doesn't have FULL JOIN.

Try this solution then
select X.Location, 
MAX(IIF(A.Price IS NULL,0, A.Price)) as PricesA,
MAX(IIF(B.Price IS NULL,0, B.Price)) as PricesB,

MAX(Nz(A.Price,0) - NZ(B.Price,0)) as PricesDiff

   from ((select A.Location
from TablesA A
UNION 
SELECT B.Location
from TablesB B) X
LEFT JOIN TableA A on X.Location = A.Location)
LEFT JOIN TableB B on X.Location = B.Location
GROUP BY X.Location
or alternatively
select X.Location,
MAX(IIF(A.Price IS NULL,0, A.Price)) as PricesA,
MAX(IIF(B.Price IS NULL,0, B.Price)) as PricesB,
 
MAX(Nz(A.Price,0) - NZ(B.Price,0)) as PricesDiff
 
   from
 
( (select Location
from  A
UNION all
select Location
from  B) X
 
 
LEFT JOIN  A on X.Location = A.Location)
LEFT JOIN  B on X.Location = B.Location
GROUP BY X.Location
suggested by someone proficient in Access.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform