How can I translate this from PL/SQL into embedded SQL!?

CURSOR TEMP1 is
SELECT emp.fname fname, emp.lname lname, emp.ssn, dname,emp.salary salary, emp1.fname supervisor_fname, emp1.minit supervisor_mdlname,emp1.lname supervisor_lname FROM employee emp, employee emp1,department d
WHERE emp.superssn=emp1.ssn(+) and emp.dno=dnumber order by ssn;
PNTR_TEMP1 TEMP1%ROWTYPE;
--calcualting values for the cursor TEMP1
for PNTR_TEMP1 in TEMP1 loop
fname:= PNTR_TEMP1.fname;
lname:= PNTR_TEMP1.lname;
ssn := PNTR_TEMP1.ssn;
dname:=PNTR_TEMP1.dname;
sup_name:=PNTR_TEMP1.supervisor_fname||' '|| PNTR_TEMP1.supervisor_mdlname||' '||PNTR_TEMP1.supervisor_lname;
salary := PNTR_TEMP1.salary;
n_deps:=0 ;
/* how can I translate this to embedded SQL...I'm using C++*/

Hi,
you can follow this link to use cursor in Pro*c /C++
http://www.csee.umbc.edu/help/oracle8/server.815/a68022/sql.htm
Regards

Similar Messages

Maybe you are looking for

  • Error in /LogoPage.html  after deploying SAP MII 14.0 SP5

    Hi Experts, I am using SAP EHP1 for NW 7.3 SP07. Recently I upgraded from SAP MII 14.0 SP04 patch 5 to SP05 patch 2. After Upgrading I am getting many issues as below: 1. When opening "http://hostname:port/XMII/" as file "/LogoPage.html" does not exi

  • Color Correction changes when Canvas is re-sized?

    I have an Apple Cinema Display 22 inch (pre-HD model) and am working with some DVCPRO-HD footage that has been turned black and white using the 3-way CC filter. We wanted to do a quick pass on it and get the contrast as consistent as possible before

  • How do I make my already existing check boxes "checkable" [so I can check and uncheck them on PDF Expert]

    How do I make my already existing check boxes on a (PDF Document) checkable - So I can check and uncheck them on PDF Expert or Annotate 101. I am using ADOBE Acrobat PRO with millions of options, but no easy "here is how to do the one thing you want

  • Is this Report Possible?

    Hi, I am wanting to create the following SQL Updateable report, for example: foo1--bar1---aa---checkbox item that is only displayed once representing all of foo1 foo1--bar2---bb foo1--bar3---cc ============ <<<==== horizontal rule separating foos **

  • Captivate 7, sequencing quiz question, answers are not reshuffled

    Hello, I have made a quiz using Cp7. The questions are all sequencing questions. The first time around, the answers are shuffled, as one would expect. Then the quiz-taker puts the answers in the correct order. However, the following times the quiz-ta