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

what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct

0 Answers   HP,


hi i m deepak my shedule for NIC pi is 17 Apr please contact me if anybody has interview on same day or give me some idea who have faced

0 Answers  


When we have more than one main function in a program how does the compiler know the starting point of the program, i mean from which main the execution or compilation of the program begins?

2 Answers   247Customer,


technical interview questions and process

0 Answers   Ariba,


What is the difference between save and create method of activerecord?

0 Answers  






differences between qtp10.0 and 11.0 ?

0 Answers  


hai i am prasanna.I am MCA 2009 fresher.tell me about certifications.which certification helps me to improve my carrier and to get a technically oriented job ,which certification helps to get job faster.

0 Answers  


how much fee for deccan soft institute .how to block seat for sandeep sir class reply soonnnn 

0 Answers  


What is the meaning of client-server application. The purpose of Client-Server Application. with description.

0 Answers  


Hi..Am done with my Masters recently..Am planning to learn TIBCO.. could anyone suggest me about how the job market will be and Is there any course necessary to learn prior to Tibco..i mean any prerequisite. I dnt have any knowledge on PL/SQL thats it... Plz suggest me in a best way...

0 Answers  


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

0 Answers   Accenture,


5. Which of the following can you do with DB2 Express- C? Query databases with SQL Query databases with XML using XQuery and XPath Use SQL in Xquery and Xquery in SQL All of the above

0 Answers  


Categories