Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

1.Describe about your project?

1 Answers  


how CLR identify vb file?

0 Answers   Tech Mahindra,


What is dialog programming?

0 Answers  


This is a puzzle question .... The warden meets with 23 new prisoners when they arrive. He tells them, "You may meet today and plan a strategy. But after today, you will be in isolated cells and will have no communication with one another. "In the prison is a switch room, which contains two light switches labeled A and B, each of which can be in either the 'on' or the 'off' position. I am not telling you their present positions. The switches are not connected to anything. "After today, from time to time whenever I feel so inclined, I will select one prisoner at random and escort him to the switch room. This prisoner will select one of the two switches and reverse its position. He must move one, but only one of the switches. He can't move both but he can't move none either. Then he'll be led back to his cell. "No one else will enter the switch room until I lead the next prisoner there, and he'll be instructed to do the same thing. I'm going to choose prisoners at random. I may choose the same guy three times in a row, or I may jump around and come back. "But, given enough time, everyone will eventually visit the switch room as many times as everyone else. At any time anyone of you may declare to me, 'We have all visited the switch room.' and be 100% sure. "If it is true, then you will all be set free. If it is false, and somebody has not yet visited the switch room, you will be fed to the alligators." What is the strategy they come up with so that they can be free?

6 Answers  


how do u handle table control inbdc explain the process in steps iwant the answer in urgent please forward this even i know how to explain there

0 Answers   Synopsis,


Data structure used to impliment a menu:

0 Answers   Verifone,


How to use string functions in QTP?give some examples

1 Answers  


what are the topics choosen for jam round for interviews

0 Answers  


why we need to take u?

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  


what is the difference between rename and label

0 Answers   Satyam,


How can you incorporate a Datawindow to a Oracle8i stored procedure?

0 Answers   IBM,


Categories