Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA - 06553 PLS-306 error wrong number or type of arguements

user649990Nov 20 2016 — edited Nov 24 2016

select

m.deptid,

xmlelement("department",

xmlelement("dept",m.deptid),

xmlagg(xmlelement("emp",n.empid),xmlelement("love",n.empname))

)

test from employee_test2 n,department_test2 m

where n.deptid=m.deptid

group by m.deptid

When i execute above query it throws error

When i remove this xmlelement("love",n.empname it execute successfully

Can someone help me in this

pastedImage_2.png

This post has been answered by Gbenga Ajakaye on Nov 20 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 22 2016
Added on Nov 20 2016
7 comments
1,265 views