Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What the SQL
Message
De
21/02/2006 17:51:44
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01097936
Message ID:
01097944
Vues:
22
Just to add, if there are cases that don't (yet) have a Loan, Rep or Debtor assigned then you can use LEFT JOIN to get all cases, even if their data is not complete.

>Try
SELECT cases.StartDate,
>		reps.PersonsName AS RepName,
>		Debtors.PersonsName AS DebtorName
>	FROM CASES
>		JOIN LOANS ON loans.iLoanID = cases.iLoanID
>		JOIN PEOPLE Reps ON Reps.iPeopleID = cases.iRepID
>		JOIN PEOPLE Debtors ON Debtors.iPeopleID = loans.iDebtorID
>
>>I want to write a select statement that will result in the following cursor:
>>
>>The "StartDate"
>>The "Rep's name"
>>The "Debtor's name"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform