Reputation: 25
I am migrating my oracle db to SQL Server 2008.In oracle we can use =(+) operator to indicate left or right joins. In SQL Server is there a operator to indicate left or right joins? Should we always code as LEFT JOIN ... ON ...?
Upvotes: 0
Views: 611
Reputation: 17957
The old *=
syntax was removed from SQL Server in 2005. To use it set the compatibility level to 80.
Upvotes: 1
Reputation: 754438
You should always use LEFT OUTER JOIN
and RIGHT OUTER JOIN
in my opinion.
Upvotes: 1
Reputation: 498992
There isn't a specific operator like that - you should use the explicit LEFT JOIN
or RIGHT JOIN
notation.
Upvotes: 1