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 / unnikrishnan nair r
CREATE PROCEDURE GetDept
AS
SELECT Dept_name from dept
WHERE Dept_Id NOT IN(SELECT DISTINCT Dept_id FROM Emp )
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the different types of replication are there in sql server 2000?
What are the different types of normalization?
How can you list all the columns in a database?
Can you insert NULL in unique column?
can we have a nested transaction? : Sql server database administration
Explain what is “asynchronous” communication in sql server service broker?
Mention the different types of replication in sql server.
What is difference between rollback immediate and with no_wait during alter database?
what are the different stages of Report Processing?
How many types of schemas are there?
Explain full-text query in sql server?
How do I view a script in sql server?
List the ways in which dynamic sql can be executed?
what is spatial nonclustered index
 Explain what is sql override for a source taLle in a mapping?