Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT records from 3 tables
Message
De
19/07/2000 17:39:26
 
 
À
19/07/2000 15:52:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00394522
Message ID:
00394601
Vues:
11
Try this it should do the trick...


SELECT patient.fields,;
recall.fields,;
telelist.fields;
FROM Patient;
LEFT OUTER JOIN;
ON patient.patientkey = recall.patientkey ;
LEFT OUTER JOIN;
ON patient.patientkey = telelist.patientkey
WHERE patient.patientId = '1234'


now if you can find me someone who can roll form 4"x5.4lb channel in a 42" diameter we are even :o)

>I would like to collect all appointments, recalls, and telephone messages for a single patient into a single cursor. The relational item is the common patient.
>
>SELECT *field list* ;
> FROM patient ;
> JOIN recall ON patient.on+patient.pn = recall.cnpn ;
> WHERE PATIENT.on+patient.pn = '01450601' ;
>
>collects 3 records from the recall table
>
>
>SELECT *field list* ;
> FROM patient ;
> JOIN recall ON patient.on+patient.pn = recall.cnpn ;
> JOIN telelist ON patient.on+patient.pn = telelist.cnpn ;
> WHERE PATIENT.on+patient.pn = '01450601' ;
>
>Collects 0 records - Is this the correct type of JOIN for the 3rd table?
>
>Thanks in advance for your time.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform