Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select sql question
Message
From
13/11/1998 12:06:48
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00157425
Message ID:
00157451
Views:
20
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform