Home Page for the TeradataForum
 
https:

Archives of the TeradataForum

Message Posted: Thu, 02 Oct 2008 @ 08:26:18 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Secondeary index not used
 
From:   Sapra, Kapil Dev

Hi,

Sub-queries doesn't use Secondary Indexes and SQL-1 is using sub-query.

You can change like this.. Hope this will use Secondary Index.

     select
     A.bla
     from my_table
     (select max(load_dte) from another_table) b (LDate)
     where a.period_dte = b.Ldate
     ;

Thanks.


Best Regards,

Kapil Dev Sapra



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 28 Jun 2020