473,388 Members | 1,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

I want to add the SUM(BL_US_CURY_AMT) + FUND_CASH_BAL_AMT into FUND_CASH_BAL_AMT.

UPDATE BFD02.FUND_ARGMT_PARM FP
SET FUND_CASH_BAL_AMT = FUND_CASH_BAL_AMT +
(SELECT SUM(BL_US_CURY_AMT)
FROM BFD02.FUND_ARGMT_FIN_AMT FA
WHERE FA.VAL_CTG_CD = 'I'
AND FA.VAL_QUAL_CD = 'IP'
AND FA.VAL_ASCR_CD = ' '
AND FA.DATA_EFF_DT = (SELECT PROC_DT FROM BFD02.BATCH_PARM
WHERE PARM_KEY_ID = 'PROC-DATE')
AND FP.FDARR_ID = FA.FDARR_ID)
,LST_UD_TRN_ID = CURRENT TIMESTAMP
WHERE FP.FDARR_ID IN
(SELECT DISTINCT F2.FDARR_ID
FROM BFD02.FUND_ARGMT_FIN_AMT F1,
BFD02.FUND_ARGMT_PARM F2
WHERE F1.FDARR_ID = F2.FDARR_ID
AND F2.VAL_QUAL_CD IN ('CCI','CCV','LRF','FDD','FNR'));

Look into the above update query. I want to add the SUM(BL_US_CURY_AMT) + FUND_CASH_BAL_AMT into FUND_CASH_BAL_AMT.
BFD02 is the Database.

IS The above query is ok for that.? or else please guide me in to it.
Thanks,
Jestin
Mar 12 '11 #1
0 1118

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: reynArd | last post by:
"I can teach anyone how to get what they want out of life. The problem is I can't find anybody who can tell me what they want." -- Mark Twain "Today people in America can become whatever they want....
0
by: reynArd | last post by:
"I can teach anyone how to get what they want out of life. The problem is I can't find anybody who can tell me what they want." -- Mark Twain "Today people in America can become whatever they want....
5
by: mr.iali | last post by:
Hi Everyone I would like to get into software developent using a programming language like c++, java or pl/sql for oracle. I have no idea where to start from. Which language is there more...
7
by: sumi | last post by:
Hi, from my login i want to login as a other user , how can i do it using python.
7
by: Anne M | last post by:
I have a report based on query..which is a team list with names and their role on team ie coach, assistant and player. Report is almost what I want and my knowledge is limited so I need some...
4
by: veereshai | last post by:
i want to copy the functions from my source file into a new file...and convert each function into a new object file by compiling it. now, i want to invoke the function using the object file i have...
10
by: Atul | last post by:
Hi, I just stepped into C#. I am facing one problem. Here is the scenario. I am posting some data to one website (https site). It returns me response HTML. I want to parse this HTML and want to...
2
by: Ravichandran Mahalingam | last post by:
Dear Readers, I have successfully created a C# program that will load records from a view, do some processing, write them back. I want to do this in an unattended mode. I want to close the...
0
by: mdanna | last post by:
I'm having some trouble with this problem in DES. For a project at school, I want to show that weak keys are easy to be broken and because of this I need to be able to generate weak keys. I want...
182
by: Jim Hubbard | last post by:
http://www.eweek.com/article2/0,1759,1774642,00.asp
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.