| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> PLEAsE PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I have this function below and unfotunately when I test it I get the error
message below what am I doing wrong. Could someone please tell me.
SELECT DISTINCT s.first_name , s.last_name, e.enroll_date
FROM ENROLLMENT e, STUDENT s
WHERE e.student_id = s.student_id
AND e.enroll_date = p_enroll_date
ORDER BY s.last_name, s.first_name, e.enroll_date;
TYPE type_student_tab IS TABLE OF c_student%ROWTYPE
INDEX BY BINARY_INTEGER;
tab_student type_student_tab;
BEGIN
FOR l_student IN c_student
LOOP
tab_student(NVL(tab_student.last,0)+1):= l_student;
END LOOP;
DBMS_OUTPUT.PUT_LINE
('Enroll DATE Student Name');
DBMS_OUTPUT.PUT_LINE
('====================================================');
FOR e_enroll IN tab_student.first .. tab_student.last
LOOP
( tab_student(e_enroll).enroll_date||' '||
tab_student(e_enroll).first_name || ' '||
tab_student(e_enroll).last_name || ' ');
END LOOP;
Thanks a lot Received on Sun Dec 16 2001 - 00:43:00 CST
![]() |
![]() |