In my last post in this series, I talked about using simple loops to populate large tables. This time I'd like to focus on getting rid of old, ANSI-89 joins.
I am sure most veterans know better than to use old ANSI-89 JOIN syntax, such as:SELECT o.OrderID, od.ProductID FROM dbo.Orders AS o, dbo.OrderDetails AS d WHERE o.OrderDate >= '20091001' AND o.OrderID = od.ProductID; One reason to avoid this syntax is that the query is often less readable than when you separate the joining criteria fr...
No comments yet, be the first one to post comment.