select balance from newrecord where s_no in(select max(s_no) from newrecord) into :summary.Bal ;
how do you transform this from sql to pl/sql?
explanation: selecting a balance from the table newrecord where s_no (serial number) a member of newrecord is max so lets say if it starts from 1 to 6 will choose to show the balance with s_no = 6 , :summary.Bal is a text item to show the balance