Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inner join problem
Message
De
31/03/2002 13:45:52
Denis Filer
University of Oxford
Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Inner join problem
Divers
Thread ID:
00639282
Message ID:
00639282
Vues:
43
A parent file sp has a related child file SPLK. There can only be one record per SP in SPLK. Only some SP records have an SPLK entry. I am using the command: SELECT * FROM sp INNER JOIN splk ON splk.spcode = sp.spnumber where &customcomx INTO CURSOR TEMPCURSOR ... with the two files aliased SP and SPLK opened. This does not work correctly with a search that only refers to fields in SP AND if the related file SPLK lacks records for SP records. I noticed this using a LIKE clause in the WHERE clause (&customcomx). The &customcomx command in question was "sp.sp1 LIKE '%luzon%'"

Is there a way around this? Thanks in advance ....
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform