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 / sql pro

/*stored procedure for emplpoyee and department table
to get DeptName which has no employee records*/

select d.dept_name
from dept d
left join empl e
on d.dept_id = e.dept_id
where e.dept_id is null

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different normalization forms?

1122


Explain what is lock escalation?

1074


What is query optimizer in sql server?

1033


Types of Authentications in Sql Server? How user gets authenticated through windows authentication?

1063


You accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover?

997


What is an execution plan? How would you view the execution plan?

1085


How do you create an execution plan?

957


What is difference between commit and rollback when used in transactions?

969


Explain what is dbcc?

1017


What are the differences between local and global temporary tables?

1093


what are the new features in SSRS?

134


What are the advantages of policy management?

997


What is identity?

1025


How to download and install microsoft sql server management studio express?

1047


Can we delete data from a view?

930