Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select sql question
Message
De
13/11/1998 12:06:48
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00157425
Message ID:
00157451
Vues:
19
Assuming Field2 and Field3 are character type of lenght 50:

SELECT * FROM Table1 WHERE Field1 AND PadR(Field2, 50) + PadR(Field3, 50) IN (SELECT PadR(Field2, 50) + PadR(Field3, 50) FROM Table2)

HTH

>having trouble with the actual sql syntax.
>
>select * from table1 where field1 = .t. into resulttable
>
>now only want the rows from resulttable that have a match on field2 and field3 in table2.
>
>obviously i would prefer to get both things done in a single statement, if possible. this is just the easiest way for me to explain it.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform