Hi Otinauj, and welcome to the forum.
You say that VFP's Select SQL "seems to be a dumb brother of SQL Server". You might be confused about the differences. As I'm sure you know, SQL Server is not a command, or even a dialect of SQL. It is a client-server database management system which supports a version of SQL called T-SQL. VFP, on the other hand, is an application development system and programming language which has built-in data-handling capabilities. Amongs the many commands and functions that the VFP language supports is the common SQL commands.
In both systems, the SQL dialect is based n Ansi-92 SQL, but that doesn't mean that they are the same dialects. In moist ways, they are mutually compatible, but they both have additional features, and in some respects they work differently.
Now, to answer your question, I'm not sure what you mean by "nested functions" in a query. Do you perhaps mean sub-queries, for example:
[tt]SELECT .... FROM .... WHERE x IN (SELECT .... FROM .....)[/tt]? That query is certainly valid in VFP, as are the following:
[tt]SELECT x, (SELECT ... FROM ....), y FROM ....[/tt] and
[tt]SELECT x FROM ... JOIN (SELECT ... FROM ...) AS .... ON ....[/tt].
Or perhaps you meant that you want to include function calls in a SELECT, such as
[tt]SELECT ALLTRIM(x) AS ... FROM ...[/tt]? If so, then that is supported as well.
If that's not what you mean by "nested functions", perhaps you could clarify what your question.
Finally, I suggest that you will get a better answer to questions posted here (or in any other forum) if you focus on the technical issues. You're not going to win any friends here by referring to a tool that most of use every day as "some Billy G. piece of garbage".
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads