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 / vinoth kumar

select * from department where Dept_id
not in(select Dept_id
from employee)

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention the differences between substr and charindex in sql server.

530


What is the chart in report?

111


What is onf in normalization form?

578


Explain Reporting Life Cycle?

90


What happens when converting big values to numeric data types?

576






How to create a new login name in ms sql server?

557


What is the difference between insensitive and scroll cursor?

589


What is sql server profiler trace data file?

597


What is self join in sql server joins?

575


What is the purpose of the tempdb database?

585


What are the 3 types of schema?

606


What are different backups available in sql server?

614


can a table be moved to different filegroup? : Sql server administration

555


When is the use of update_statistics command?

561


What is the difference between count and distinct count?

474