Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

optimising the update query

Status
Not open for further replies.

muktad

Programmer
Jul 7, 2009
1
US
please help me in optimizing this query ..
UPDATE DealReq_DealReqDtl_BB_T1 from

(select CASE WHEN (T1.BGSTOR='')
AND (T1.BSSTOR='')
THEN
'01*'
Else
''
END ||
CASE
WHEN (T1.NTUPCN='')
THEN
'04*'
ELSE
''
END from DealReq_DealReqDtl_BB_T1 T1 ) as E(E1)
SET Error_Code = E1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top