Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

SQL Server Query

$
0
0

Hi All,

Sql query is behaving the abnormally....

                           

Query-1

SELECT 
*
FROM
        Employees AS   E
        FULL OUTER JOIN
        Departments AS D
        ON D.Deptno =E.deptno 
 WHERE       
        E.deptno IS NOT NULL  
        AND 
        D.Deptno IS NOT NULL

Query-2      

SELECT 

*
FROM
        Employees AS   E
        FULL OUTER JOIN
        Departments AS D
        ON D.Deptno =E.deptno  
        AND E.deptno IS NOT NULL  
        AND D.Deptno IS NOT NULL



Both the queries functionalities are same....................

But , results are differnt .. 

please help on this .

Thanks


Mahesh Alam



Viewing all articles
Browse latest Browse all 23857

Trending Articles



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