General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only