Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Questoin about SELECT
Message
From
11/09/2001 05:56:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Questoin about SELECT
Miscellaneous
Thread ID:
00555024
Message ID:
00555024
Views:
47
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
Next
Reply
Map
View

Click here to load this message in the networking platform