Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Questoin about SELECT
Message
De
11/09/2001 05:56:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Questoin about SELECT
Divers
Thread ID:
00555024
Message ID:
00555024
Vues:
48
Hi

I have the following Select:
SELECT Referral.*;
  FROM Referral;
 INNER JOIN Client;
    ON Referral.Cl_Ref = Client.Cl_Ref;
  LEFT OUTER JOIN Allocation;
    ON Client.Cl_Ref = Allocation.Cl_Ref;
 INNER JOIN Resource;
    ON Allocation.Rs_Ref = Resource.Rs_Ref;
 WHERE BETWEEN(Referral.Re_Date, ldStartDate, ldEndDate);
  INTO CURSOR Results
Now, my question is : Will the 2nd Inner Join restrict the results if there is no RESOURCE record relating to the ALLOCATION record. What I want to is for it to still retrieve the REFERRAL records, even if there is no related record between RESOURCE & ALLOCATION, because I'm only LEFT Joining the ALLOCATION.

The solution is simple, change the INNER to a LEFT OUTER, so basically, I'm just confirming what my thoughts are.

Any ideas?
Thanks
Kev
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform