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

the channel in the data communication model can be? option a.postal mail serv. b telephon lines c.radio signals d. all the above

2 Answers   iNautix, National Investment Commission,


can we use commit,rollback in triggers and how?

0 Answers   Sierra Atlantica,


code for connection from windows forms to sql server

0 Answers   ME,


Why multiple inheritance is removed in java?

4 Answers   TCS,


what is delimiter in sas ?

0 Answers  


What is SOLID Principle in Programming Language?

0 Answers   NA,


purpose of abstraction and interface

0 Answers  


Always use scope terminator like End-If with IF, End- Evaluate with Evaluate statement.Can somebody explain me the detail logical explanation?

0 Answers  


What is the purpose of <Trigger> element of <updatePanel> in Ajax

0 Answers  


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

0 Answers  


if there are n nodes in a binary tree, how many null pointers are there?

4 Answers   Hughes,


___ method used to move a recordset pointer in nth position in DAG.

1 Answers  


Categories