Are both sql statements below functionally the same thing? Is one better than the other?
-- cut here --
USE NORTHWIND
GO
SELECT SUM(Discount)
FROM [ORDERS] X INNER JOIN [ORDER DETAILS] Y ON X.ORDERID = Y.ORDERID
WHERE X.FREIGHT BETWEEN 0 AND 10 AND X.EMPLOYEEID = 5
GO
SELECT SUM(Discount)
FROM [ORDERS] X INNER JOIN [ORDER DETAILS] Y ON (X.ORDERID = Y.ORDERID AND X.EMPLOYEEID = 5)
WHERE X.FREIGHT BETWEEN 0 AND 10
GO
-- cut here --
thanks in advance
Billy