Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Complicated tree query
Message
 
To
11/10/2006 02:32:12
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01160753
Message ID:
01161118
Views:
19
Hi, Borislav!

>No problems at all when you want to select as many fields as you want, you >just must put alias before them:

Absolutely agreed with You, but I mean that you must change your code
in your answer, because I never change the original code of message that
was sended by another person.

>*** or for one field:
>SELECT Master.Field1;
> FROM TableName Master;
>JOIN TableName Child ON childs.pid=parents.id;
>WHERE Master.Field3 = something;
>INTO CURSOR crsTest

and now I violate my rules and write right code for Edgar,
because if You leave "SELECT Master.Field1" you will get the number
of records with the same values:
SELECT Child.required_field_name;
FROM edgar_table_name as Master;
JOIN edgar_table_name as Child ON child.pid=master.id;
WHERE Master.id = some_value;
INTO CURSOR crsTest
:)
With best regards,
Juri.

P.S. Borislav! I hope I'm not offended You?
Really, You are a great helper!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform