Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL - What's different?
Message
From
23/01/2003 10:49:44
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
 
To
23/01/2003 10:22:05
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00744726
Message ID:
00744738
Views:
11
Hi!

If used SQL how BD with SqlExec() function, you can do Left Join in 1st case thus:
SELECT field1, field2, field3 FROM table1, table2 ;
WHERE table1.field1 *= table2.field1
Bye!

>The 2nd version (using the JOIN syntax) is preferred as it allows things >like LEFT OUTER JOINS.

>>When I first learned SQL syntax, I wrote my own selects like
>>
>>SELECT field1, field2, field3 FROM table1, table2 WHERE table1.field1 = table2.field1
>>
>>Now, I'm using VFP 7/8 View Designer, and their format for the same would be
>>
>>SELECT field1, field2, field3 FROM table1 INNER JOIN table2 ON table1.field1 = table2.field1
>>
>>So, I'm wondering what/why the difference is between the statements.
>>
>>Chris.
Erick
Força Sempre!
Strength Always!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform