Question : Converting Access queries to T-SQL problems

I'm trying to convert some old Access queries to SQL Server T-SQL queries.  Access yields 354 rows, while the other pulls 338.  Is there something obvious I'm missing?

The top part is the Access code, and the break where the T-SQL code is pretty obvious.  Thanks!
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
--ACCESS CODE

SELECT DISTINCT tbl_Temp_4.Patient_Id, tbl_Temp_4.FromDate, tbl_Temp_4.Post_Date, tbl_Temp_4.Enc_Units, tbl_Temp_4.LastOfLocation, tbl_Temp_4.Doctor_Id, tbl_Temp_4.LastOfInsurance_Id, tbl_Temp_4.LastOfReport_Payor_Type, tbl_Temp_4_1.LastOfReport_Payor_Type INTO tbl_Temp_5
FROM tbl_Temp_4 INNER JOIN tbl_Temp_4 AS tbl_Temp_4_1 ON (tbl_Temp_4.Patient_Id = tbl_Temp_4_1.Patient_Id) AND (tbl_Temp_4.FromDate = tbl_Temp_4_1.FromDate) AND (tbl_Temp_4.LastOfLocation = tbl_Temp_4_1.LastOfLocation)
WHERE (((tbl_Temp_4.LastOfReport_Payor_Type) Is Null) AND ((tbl_Temp_4_1.LastOfReport_Payor_Type) Is Not Null)) OR (((tbl_Temp_4.LastOfReport_Payor_Type) Is Not Null) AND ((tbl_Temp_4_1.LastOfReport_Payor_Type) Is Null))
ORDER BY tbl_Temp_4.Patient_Id, tbl_Temp_4.FromDate, tbl_Temp_4.LastOfReport_Payor_Type;

/****************************************************************************************
-SQL SERVER CODE
*****************************************************************************************\
SELECT DISTINCT 
                      t1.Patient_Id, t1.FromDate, t1.Post_Date, t1.Enc_Units, t1.LastOfLocation, t1.Doctor_Id, t1.LastOfInsurance_Id, t1.LastOfReport_Payor_Type, 
                      tbl_Temp_4_1.LastOfReport_Payor_Type AS Expr1
FROM         tbl_Temp_4 AS t1 INNER JOIN
                      tbl_Temp_4 AS tbl_Temp_4_1 ON t1.Patient_Id = tbl_Temp_4_1.Patient_Id AND t1.FromDate = tbl_Temp_4_1.FromDate AND 
                      t1.LastOfLocation = tbl_Temp_4_1.LastOfLocation
WHERE     (t1.LastOfReport_Payor_Type IS NULL) AND (tbl_Temp_4_1.LastOfReport_Payor_Type IS NOT NULL) OR
                      (t1.LastOfReport_Payor_Type IS NOT NULL) AND (tbl_Temp_4_1.LastOfReport_Payor_Type IS NULL)
ORDER BY t1.Patient_Id, t1.FromDate, t1.LastOfReport_Payor_Type

Answer : Converting Access queries to T-SQL problems

also this is the clear one
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
SELECT DISTINCT 
                      t1.Patient_Id, t1.FromDate, t1.Post_Date, t1.Enc_Units, t1.LastOfLocation, t1.Doctor_Id, t1.LastOfInsurance_Id, t1.LastOfReport_Payor_Type, 
                      tbl_Temp_4_1.LastOfReport_Payor_Type AS Expr1
FROM tbl_Temp_4 AS t1 
	INNER JOIN tbl_Temp_4 AS tbl_Temp_4_1 ON t1.Patient_Id = tbl_Temp_4_1.Patient_Id 
										 AND t1.FromDate = tbl_Temp_4_1.FromDate 
										 AND t1.LastOfLocation = tbl_Temp_4_1.LastOfLocation
WHERE t1.LastOfReport_Payor_Type IS NULL 
  AND tbl_Temp_4_1.LastOfReport_Payor_Type IS NOT NULL 
   OR (t1.LastOfReport_Payor_Type IS NOT NULL 
        AND tbl_Temp_4_1.LastOfReport_Payor_Type IS NULL)
ORDER BY t1.Patient_Id, t1.FromDate, t1.LastOfReport_Payor_Type
Random Solutions  
 
programming4us programming4us