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 is cube dimension? : sql server analysis services, ssas

1045


What are the types of processing and explain each? : sql server analysis services, ssas

1202


How do I create an extended event in sql server?

1001


What functions can a view be used to performed?

1113


Explain what are the basic functions for master, msdb, model, tempdb databases?

1026


What happens on checkpoint?

1067


Explain what is “asynchronous” communication in sql server service broker?

954


How to rebuild the master database?

1133


How will you decide the active and passive nodes?

1177


What do you mean by an execution plan?

1186


What is the report builder?

143


What is the use of sql profiler in sql server 2012?

941


what is an extended stored procedure? : Sql server database administration

1104


How many types of schemas are there?

1091


How do I determine how many instances of sql server are installed on a computer?

1052