User Profile

Collapse

Profile Sidebar

Collapse
shanks0092001
shanks0092001
Last Activity: Oct 26 '08, 08:40 PM
Joined: Oct 24 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • shanks0092001
    replied to Cursor update
    declare
    rate integer;
    cursor c_f is
    select treccy,treamt from tredtl where treccy not in ('YEN','EUR');
    begin
    select fxrate into rate from fxrate where fxfrccy='EUR'
    for b in c_f
    loop
    select fxrate into rate2 from fxrate where fxrate not in ('YEN,'EUR') and fxfrccy =b.treccy;
    if b.treccy<>'YEN' and b.treccy<>'EUR' then
    update tredtl
    set eur_equivalent_ amount=b.treamt *rate2/rate...
    See more | Go to post

    Leave a comment:


  • shanks0092001
    replied to Cursor update
    [QUOTE=debasisda s]TRY THE FOLLOWING CODE

    Code:
    declare
    rate integer;
    cursor c_f is
    select treccy,treamt from tredtl where treccy not in ('YEN','EUR');
    begin
    select fxrate into rate from TABLE_NAME where fxfrccy='EUR' 
    for b in c_f
    loop
    select fxrate into rate2 from TABLE_NAME where fxrate not in ('YEN,'EUR') and fxfrccy =b.treccy;
    if b.treccy<>'YEN' and b.treccy<>'EUR'
    ...
    See more | Go to post

    Leave a comment:


  • shanks0092001
    started a topic Cursor update

    Cursor update

    Hi All,
    I need a urgent help on the pl/sql written below

    declare
    rate integer;
    cursor c_f is
    select treccy,treamt from tredtl where treccy not in ('YEN,'EUR');
    begin
    select fxrate into rate where fxfrccy='EUR'
    for b in c_f
    loop
    select fxrate into rate2 where fxrate not in ('YEN,'EUR') and fxfrccy =b.treccy;
    if b.treccy<>'YEN' and b.treccy<>'EUR' then...
    See more | Go to post
No activity results to display
Show More
Working...