Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Correct statement
Message
From
01/07/2006 04:36:31
 
 
To
30/06/2006 13:11:00
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01133122
Message ID:
01133243
Views:
13
>>Hi all,
>>I want to extract some names from a table 'x' with a 'where' clause, but only if the names are present in another table 'y'. For example: select name, surname from x where dimessa=0 .and.... (when the name and surname is present in the y table) into cursor mycursor.
>>Any idea about the correct statement sql?
>>Thanx in advance.
>
>One way (untested).
>
>SELECT Name, Surname ;
>  FROM Y JOIN X ;
>    ON Y.Name + Y.Surname = X.Name + X.Surname
> WHERE X.Dimessa = 0
>
>
>Regards,

Hi Jim,
this way works.
Thanx
Previous
Reply
Map
View

Click here to load this message in the networking platform