Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: When to use inner join
On Thu, 23 Mar 2006, m.tonies_at_upscene.removethis.com wrote:
>
>> There are two queries: >> 1. SELECT >> RR.*, a.NAME >> FROM >> T_test1 RR INNER JOIN >> T_test2 A >> ON >> A.CODE =RR.LOCCODE >> >> 2.SELECT >> RR.*, a.NAME >> FROM >> T_test1 RR , t_test2 a where A.CODE =RR.LOCCODE >> >> they are giving the same recordset. >> --> when to use Inner join >> -->Is there any diff. b/w these two queries
The biggest win for me is that the tables I'm joining and the criteria I'm using to join are in the same place. I don't have to visually scan the where criteria and keep my place, I put the tables and criteria together. Once I coded a few INNER JOINS and LEFT OUTER JOINS I was hooked.
-- Galen BoyerReceived on Thu Mar 23 2006 - 18:01:02 CST
![]() |
![]() |