Could someone kindly assist in troubleshooting a query problem: I have 2 tables with a common field CheckID. When I run Select statements as below I get the correct results 2 rows but when I use an inner join, it only returns one row. I am trying to transition from MS Access to SQL Server, so I am missing something here? Any assistance highly appreciated. The tables currently contain these two rows
Select CheckID from table1 where CheckID = 723 or CheckID = 322 'returns 2 rows
Select CheckID from table2 where CheckID = 723 or CheckID = 322 'returns 2 rows
Select CheckID from table1 inner join table2
on table1.CheckID = table2.CheckID ' returns only 1 row