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...

Write a stored procedure for emplpoyee and department table
to get DeptName which having no employee.
Table Structure-
Emp-Emp_Id,Emp_Name,Dept_id
Dept-Dept_Id,Dept_Name

Answer Posted / sivaram pothuru

select a.*,d.* from dept a
left join emp d on a.deptno=d.deptno where d.deptno is null

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List out the differences between the clustered index and non-clustered index in sql server?

944


What are the types of user defined functions in sql server?

989


What is the recursive stored procedure in sql server?

966


Explain sql delete command?

1003


How to store and query spatial data?

936


What is use of except clause?

1036


What is a performance monitor?

921


How do I open a .db file?

971


What do you mean by an execution plan? Why is it used?

952


Explain the properties of sub-query in sql server?

954


Define outer join in sql server joins?

890


What is normalization 1nf 2nf 3nf?

1003


What are cursors? Explain the different types of cursors Enlist a few disadvantages of cursors.

1200


Explain trigger and trigger types?

909


Write a query to find 5th highest amount paid from the customer table.

879