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 * from emp full join dept on emp.deptno=dept.deptno
where empno is null;

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does this statement do @@rowcount?

649


What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas

802


what are constraints? Explain different types of constraints? : Sql server database administration

582


What is model database in sql server?

682


What is store procedure? How do they work?

671






What are group functions in query statements in ms sql server?

637


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

833


What is sql server management studio? : sql server management studio

656


What do you understand by sql server agent?

613


What is the difference between truncate and delete commands?

644


What is the maximum number of index per table?

660


How do you identify a foreign key?

691


Explain collation?

696


How to create database with physical files specified in ms sql server?

643


What are commit and rollback in sql?

659