I typically use the JOIN keyword when joining tables, e.g.:
SELECT [...]
FROM Orders o
INNER JOIN OrderStatus os ON rderStatusId = os.Id
WHERE o.Id = 5
But lately I've been seeing (esp. in Books Online) syntax like:
SELECT [...]
FROM Orders o, OrderStatus os
WHERE rderStatusId = os.Id
AND o.Id = 5
Is there any functional difference between the two methods? Is one preferred? I like the first method for readability, but I get the impression that maybe the second method is more ANSI compliant. Any thoughts?
SELECT [...]
FROM Orders o
INNER JOIN OrderStatus os ON rderStatusId = os.Id
WHERE o.Id = 5
But lately I've been seeing (esp. in Books Online) syntax like:
SELECT [...]
FROM Orders o, OrderStatus os
WHERE rderStatusId = os.Id
AND o.Id = 5
Is there any functional difference between the two methods? Is one preferred? I like the first method for readability, but I get the impression that maybe the second method is more ANSI compliant. Any thoughts?