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 / ayush

create proc DeptName
begin
select * from emp full join dept on emp.deptno=dept.deptno
where empno is null;
end

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of using a stored procedure?

710


Do you know what are the ways available in sql server to execute sql statements?

727


How to make conditional sum in ssrs?

148


what is the sql equivaent of the dataset relation object ?

1727


Is candidate a key?

713






What are relationships and mention different types of relationships in the dbms

742


How you provide security to cube? : sql server analysis services, ssas

724


List down some advantages of sql stored procedure?

715


How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?

854


your distribution database is full what will u do

1871


When a primary key constraint is included in a table, what other constraints does this imply?

766


How can you hide the sql server instances?

726


What is entity data services?

780


What is an identity?

728


How to fine-tune reports?

211