Home » » Oracle SQL Performance Tuning Tips- Using Joints in Place of EXISTS for Unique Scan Indexes and small tables a to z help

Oracle SQL Performance Tuning Tips- Using Joints in Place of EXISTS for Unique Scan Indexes and small tables a to z help

Written By M.L on ஞாயிறு, 22 ஏப்ரல், 2012 | ஏப்ரல் 22, 2012

Oracle SQL Performance Tuning Tips- Using Joints in Place of EXISTS for Unique Scan Indexes and small tables a to z help

In general join tables rather than specifying sub-queries for them such as the following:
 
   select acct_ID, currency, branch
  from account
  where exists (select 1 from branch
   where code = branch and def_curr  = '001')

 With join -
 
  select acct_ID,currency, branch
  from account A, branch B
  where b.code = A.branch
  and A.def_curr  = '001'

Note : Provide your comments by clicking below options! Thanks ! :)

0 comments:

கருத்துரையிடுக

Popular Posts

General Category