Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combining SQL syntax
Message
From
18/10/2001 07:37:54
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
17/10/2001 15:06:33
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00569838
Message ID:
00570135
Views:
22
Steve,

What I really need to a way to have over 10 tables joined, from Syntax 1, but be able to use the JOIN features of Syntax 2.

Is this possible?

TIA

Rex

>>All,
>>
>>When creating SQL code in VFP, you can use one of two syntaxes:
>>
>>
>>Syntax 1.:
>>   SELECT ;
>>      Table1.Field2,;
>>      Table2.Field3 ;
>>    FROM ;
>>      Table1,;
>>      Table2 ;
>>    WHERE ;
>>      Table1.Field1 = Table2.Field2 ;
>>    INTO CURSOR SQLType1
>>
>>Syntax 2.
>>   SELECT ;
>>      Table1.Field2,;
>>      Table2.Field3 ;
>>      <b>Table3.Field2 ;</b>
>>    FROM ;
>>      Table1 ;
>>    INNER JOIN Table2 ;
>>      ON Table1.Field1 = Table2.Field2 ;
>>    <b>JOIN Table3 ;
>>      ON table1.field3 = table3.field1 ;</b>
>>    INTO CURSOR SQLType1
>>
>>
>>Type 1 allows the user to combine many more tables then Type2, but Type 2 allows the user to easily join tables in various ways (LEFT JOIN, RIGHT JOIN, FULL JOIN etc).
>>
>>Is there a way to combine the two syntaxes?
>>TIA
>>
>>Rex
>
>Rex,
>
>You can join additional tables with syntax 2. See changes in bold above.
>
>HTH,
Previous
Reply
Map
View

Click here to load this message in the networking platform