Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A question on how to link to another table using SELECT?
Message
 
À
18/10/2000 10:16:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00430870
Message ID:
00430920
Vues:
10
>Hi Stephen....My tables look like this...
>table1
>part_number c(5)
>
>table2
>part_number c(5)
>st c(2)
>state_name c(25)

Robert,

The help file will explain how to combine data from two files with SELECT. Your code would be;
SELECT Table1.Part_number, Table2.St, Table2.State_name ;
  FROM Table1 LEFT JOIN Table2 ON Table1.Part_number = Table2.Part_number ;
 INTO CURSOR MyResult
I have no idea why you said you cannot use a left join as that is what will give the result you are asking for.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform