For SQL Server 2016 upgrade – compatibility level to 130 – replace Unqualified joins with Qualified joins

For SQL Server 2016 upgrade – compatibility level to 130 – we need to replace Unqualified joins with Qualified joins.

An example of “Unqualified join” is
select table1.col11, table2.col11 from table1, table2
where table1.col1 = table2.col1

This needs to be converted to “Qualified join”

select * from table1 inner join table2 on table1.col1 = table2.col1

SQL Server supports the below explicit joins:
– LEFT OUTER JOIN or LEFT JOIN
– RIGHT OUTER JOIN or RIGHT JOIN
– FULL OUTER JOIN or FULL JOIN
– INNER JOIN

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s