Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What the SQL
Message
From
22/02/2006 12:33:40
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
21/02/2006 18:40:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01097936
Message ID:
01098175
Views:
20
This message has been marked as the solution to the initial question of the thread.
Hi Dennis,

Try this:
Select ;
	Cases.StartDate, ;
	P1.PersonName As RepName, ;
	P2.PersonName As DebtorName ;
From ;
	Cases ;
	Left Join People As P1 On Cases.iRepID = P1.iPeopleID ;
	Left Join Loans On Cases.iLoanID = Loans.iLoanID ;
	Left Join People As P2 On Loans.iDebtorID = P2.iPeopleID
Note that I have used left joins. This gets all Cases, even if there aren't matching Loans and People. If you want only those cases that have complete information then use Inner where I have used Left.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform