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

Pls Explain the join mechanism on these two tables

$
0
0

select * from tbl_singlecolA

Result Set:

id
1
1
1
1

select * from tbl_singlecolB

Result Set:

id
1
1
1
1
1
1
1

select * from tbl_singlecolA A
join tbl_singlecolB B
on A.id=B.id

Result is showing as cartesian product of two tables ., 28 rows. I have expected 4 rows. Please explain the reason?


Viewing all articles
Browse latest Browse all 4729

Trending Articles



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