By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,641 Members | 2,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,641 IT Pros & Developers. It's quick & easy.

update in a query

P: 2
I am creating a leave maintainence details

Have tables PAYMAST with fields fname,lname,empcode,brcode,total_el,total_sl

Second table - DETAILS with empcode,el,sl,halfday_el,halfday_sl

How to update the sum of el and halfday_el for each employee from DETAILS
to PAYMAST
May 20 '07 #1
Share this Question
Share on Google+
2 Replies


code green
Expert 100+
P: 1,726
Expand|Select|Wrap|Line Numbers
  1. UPDATE paymast,details SET total_el = (el + halfday_el) WHERE paymast.empcode = details.empcode 
May 21 '07 #2

P: 2
Thanks a ton
It worked well
May 21 '07 #3

Post your reply

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