SQL to generate xml output errors
Hi! The following nested xsql produces the xml output based on data from two tables. The first table has one row and the second table has 11 rows of data. For some reason, the xml parser generates and produces the tags correctly for limited number of rows only from the second table. i.e. if I exclude one or two rows of data from the second table, it works fine. Appreciate any help on this issue. Thanks.
SELECT xmlelement("EMPCheck"
,xmlagg(xmlelement("employee_rec"
,xmlforest( TO_CHAR ( emp.effective_date, 'YYYY' ) C_YR
, emp.emp_number C_EMP_NUM
, emp.emp_name C_EMP_NAME
0