![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 02 Oct 2008 @ 08:26:18 GMT
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
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||