Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
please tell me the diff

SQL
select supplier.sup_id from supplier,product where supplier.sup_id=product.sup_id
order by supplier.sup_id

select supplier.sup_id from supplier,product where supplier join product  
   supplier.sup_id=product.sup_id
order by supplier.sup_id
Posted
Updated 24-Oct-11 3:39am
v2
Comments
Yogesh Pednekar 24-Oct-11 8:46am    
what you want friend ?
Do you want the correct query or just want to find the diff .
Rakesh S S 24-Oct-11 12:26pm    
i want to know just a diff..
Sergey Alexandrovich Kryukov 24-Oct-11 19:33pm    
Incorrect question.
--SA

1 solution

"Performance wise, they are exactly the same (at least in SQL Server) but be aware that they are deprecating the implicit outer join syntax."

check the following thread for more details.

http://stackoverflow.com/questions/5273942/mysql-inner-join-vs-where[^]
 
Share this answer
 
v2
Comments
Аslam Iqbal 24-Oct-11 9:56am    
Good link

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900