2. What is With Clause In Cognos?

Answer Posted / thanjairajan@gmail.com

The WITH clause may be processed as an inline view or resolved as a temporary table. The advantage of the latter is that repeated references to the subquery may be more efficient as the data is easily retrieved from the temporary table, rather than being requeried by each reference.

For example:

WITH dept_count AS (
SELECT deptno, COUNT(*) AS dept_count
FROM emp
GROUP BY deptno)
SELECT e.ename AS employee_name,
dc.dept_count AS emp_dept_count
FROM emp e,
dept_count dc
WHERE e.deptno = dc.deptno;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the procedure for scheduling conditional rendering?

2228


What do you understand by user class in cognos?

695


What do you understand by the term 'dynamic cube'?

729


What you mean by drill across?

781


how to test reports in cognos?

778


what are the names of the reports that you prepared?

783


Define report item?

852


What is a Query Subject?

848


What is difference between primary key and unique key constraints?

747


Can you explain the advantage of using shortcuts?

776


Explain the different types of views used in cognos.

709


What junk dimension contains?

753


What is the difference between Open Connection command ang Open Session Command?

2108


What is cognos powerhouse?

773


What are query items?

783