Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What the SQL
Message
De
22/02/2006 12:33:40
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
21/02/2006 18:40:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01097936
Message ID:
01098175
Vues:
19
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform