which column to have index [message #624447] |
Mon, 22 September 2014 19:57 |
|
rahul1982
Messages: 53 Registered: November 2011 Location: Pune
|
Member |
|
|
Hi,
I am joining below two tables, ARV_tbl is having only 100 records whereas NAME_tbl is having around 10000000 records. Below SQL is not getting execute.
Pls. suggest which column should have index created.
SELECT DISTINCT ARV_DATA.entity_id,
--NAME.CORP_NUM,
NAME.be_nm,
ARV_DATA.cus_id,
ARV_DATA.cst_no,
ARV_DATA.domestic_juris,
ARV_DATA.annual_rate,
ARV_DATA.afel_name
FROM name_tbl NAME,
arv_tbl ARV_DATA
WHERE ARV_DATA.domestic_juris = name.incorporation_state_cd
AND NAME.be_nm_cur_rec_flg = 'Y'
AND NAME.src_bus_nm_type_cd = '3'
AND Upper(NAME.be_nm) = corpname
Thankx in advance.
*BlackSwan formatted the SQL Please do so yourself in the future. http://www.orafaq.com/forum/t/174502/
[Updated on: Mon, 22 September 2014 20:03] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|