If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How can I write this query more efficient?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-29-03, 16:36
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
How can I write this query more efficient?

Hi All,
I am working with V7.2 fixpack 6 aix 4.3

update bs_attached t
set (inv_rate, market_value_amt,book_value_amt,last_upd_date,mark et_value_cur,book_value_cur,
last_upd_time,last_upd_zone)
= (select i.rate_, i.market_value,i.Book_Value,julian_day(i.As_Of_Dat e),1,1,86399,134480155
from tb_info i
where i.account_coid = t.account_coid
and i.invest_coid = t.ext_coid)
where t.account_coid = (select account_coid from tb_info i
where t.account_coid = i.account_coid
and invest_coid = ext_coid);

Thank you for your help
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On