There are 2 tables:
EMP : EmpId, Ename, Sal, DeptId
DEPT : DeptId, Dname

Write a query to find out emp names and their department names. if any emp has null in Deptid the it shows
?No Department?.

Write a query to find out those department names which
has no employee.

Write a query to find out those employees whose salary
is greater than their department?s average salary.



There are 2 tables: EMP : EmpId, Ename, Sal, DeptId DEPT : DeptId, D..

Answer / humera

Answer Q # 37
select e.ename,d.dname from emp e left outer join dept d on
e.deptid = d.deptid

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More Programming Languages AllOther Interview Questions

which one is the best practice using synchronization method or synchronization block

1 Answers   TCS,


Difference between interface and abstract class?

2 Answers   Cognizant, CTC,


Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming

1 Answers  


Find out the list of roles which gives access to GUI activities? thanks in advance

0 Answers  


What's the difference b/w Table & Templete in Smartform?

0 Answers   Accenture,






Diff between IF and where ?

0 Answers   Accenture,


what is difference between IF-ELSE-ENDIF and IIF.

2 Answers  


How to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net

0 Answers   Tesco, Wipro,


Corillian's product is a "Component Container." Name at least 3 component

1 Answers  


Delta 5 weight scale not connect with oracle application what i can do?

0 Answers  


How does the type system works when there is interoperability between a COM and .Net, i mean what exactly happens there

0 Answers   247Customer,


What is the difference b/w Object base and object oriented programming?

1 Answers  


Categories