Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filter found record between 2 Tables
Message
 
À
25/07/2000 05:36:32
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00396488
Message ID:
00396513
Vues:
8
>I have 2 Tables
>(1)Customer - CustCode,.......
>(2)CustTrans - CustCode, CaseClosed (boolean),.......
> (will have multiple records of same CustCode)
>
>I would like to get all rows from the Customer table, but
>exclude those rows that the CustCode is found in the CustTrans
>table AND with the CaseClosed status is "False".
>
>How should my SQL statement be like, pls advise, thanks.

Select *
FROM Customer LEFT OUTER JOIN CustTrans
ON Customer.CustCode = CustTrans.CustCode
WHERE CustTrans.CaseClosed = True
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform