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 is transaction server isolation?

748


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

714


Which are new data types introduced in sql server 2008?

808


What is difference between unique and primary key?

651


Explain about thread and memory management process of SQL?

723






What is database mirroring?

754


Explain the flow of creating a cube? : sql server analysis services, ssas

799


What is the standby server?

682


What is database replication?

759


What is key attribute?

699


if no size is defined while creating the database, what size will the database have? : Sql server administration

748


What is the recommended total size of your memory optimized tables?

708


Explain what are the authentication modes in sql server?

678


Can we return Data from 4(more than 1) tables in stored procedure?

810


Why I am getting "the microsoft .net framework 2.0 in not installed" message?

711