Please suggest me..
Expand|Select|Wrap|Line Numbers
- update web_logins w set (last_login_date, login_count)=
- (select max(date_time), w.login_count + count(date_time) from temp_login t
- where t.acct_nr=w.acct_nr)
- where exists (select 'x' from temp_login t where w.acct_nr=t.acct_nr)
Thanks,
Mani
Please enclose your posted code in [code] tags (See How to Ask a Question).
This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.
Please use [code] tags in future.
MODERATOR