Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Inner Join row reading

$
0
0

Hi,

I have a question about how Inner Join reads rows.

For example I have 2 heap tables.

Table1 and Table2 with columns

ID and Name

ID is unique in both tables and this is the column used in the ON clause in the statement

Select a.Name

from Table1 as a

inner join Table2 as b

ON a.ID=b.ID

My question is: are all the rows read in the two tables to find matches any time when the query runs?

Thanks


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>