THIS IS A SAMPLE QUERY BUT MY QUERY LOoKS ALMOST THE SAME...I am getting the 2646 no more spool error..can any one advice me onit
select CASE
WHEN EMPCD='12' THEN 'SAMPLE'
WHEN EMPCD='13' THEN 'SAMPLE1'
END AS TEST1,
CASE
WHEN DEPTCD='12' THEN 'SAMPLE'
WHEN DEPTCD='13' THEN 'SAMPLE1'
END AS TEST2
FROM EMP,DEPT
select CASE
WHEN EMPCD='12' THEN 'SAMPLE'
WHEN EMPCD='13' THEN 'SAMPLE1'
END AS TEST1,
CASE
WHEN DEPTCD='12' THEN 'SAMPLE'
WHEN DEPTCD='13' THEN 'SAMPLE1'
END AS TEST2
FROM EMP,DEPT