what is an outer join? difference between left outer join
right outer join with an example?



what is an outer join? difference between left outer join right outer join with an example?..

Answer / m m naidu

OUTER JOIN: It is used to retrieve all the rows from one
table but matched rows from another table

LEFT OUTER JOIN: It displays matched row from two tables
and unmatched row from left hand side table

EX: select a.empno,a.ename,a.sal,b.deptno,b.dname,b.loc
from emp a left outer join dept b on(a.deptno=b.b.deptno)

RIGHT OUTER JOIN: It displays matched rows from two tables
and unmatched row from right hand side table

EX: select a.empno,a.ename,a.sal,b.deptno,b.dname,b.loc
from emp a right outer join dept b on(a.deptno=b.b.deptno)

Is This Answer Correct ?    15 Yes 5 No

Post New Answer

More Cognos Interview Questions

What is the function of cognos dispatcher?

0 Answers  


if we have a value prompt in a prompt page and if we need to pass that prompt value to a sql used in report, what is the sql code? give me example?

3 Answers   ComNet,


what is requery in cognos?

0 Answers   HMN, Satyam, TCS,


What is Additive function?

0 Answers   IBM,


What is model filter?

0 Answers  






Hi, I Want To Display The Report. From MOnday To Friday By Using Date Prompt.PLs Expain To Me...

1 Answers  


What is defined as data mining?

0 Answers  


If you have a report with list and cross tab in the same page. How do you restrict one user can see only the list and the other user can see both.

4 Answers   IBM,


What is dtm?

0 Answers  


Suppose you run a report with empty data, how will you inform the end user that it has no data while running the report in report studio? Is it possible, if so how?

0 Answers  


How can we improve performance in framework manager level?

3 Answers   Wipro,


5. Which type of report you build more, list, crosstab or chart and why?

0 Answers   IBM,


Categories