Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Joins in Views
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Joins in Views
Miscellaneous
Thread ID:
00508900
Message ID:
00508900
Views:
45
Building some additional views for an application. Is it more efficient to have joins in views or to have WHERE ... AND clauses?

For example,

SELECT ..... ;
FROM MyDbc!TableA ;
INNER JOIN MyDbc!TableC ;
ON MyDbc!TableA.nID = MyDbc!TableC.nID ;
WHERE MyDbc!TableA.nID = ?vp_nID


OR

SELECT .... ;
FROM MyDbc!TableA, MyDBc!TableC
WHERE MyDbc!TableA.nID = MyDbc!TableC.nID ;
AND MyDbc!TableA.nID = ? vp_nID

I seem to remember reading somewhere that the joins are slower.

Thanks

Bob
Next
Reply
Map
View

Click here to load this message in the networking platform