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

User wants only to display only pdf as export option in report manager. How to achieve this?

173


How to download and install microsoft .net framework version 2.0?

557


How to count duplicated values in a column in ms sql server?

522


What is use of attributehierarchyenabled? : sql server analysis services, ssas

618


How do you delete a trigger?

587






Do you know data definition language, data control language and data manipulation language?

637


What is a filestream?

564


What is triggers and its types?

552


Can group functions be mixed with non-group selection fields in ms sql server?

551


Will the writetext statement activate a trigger?

574


How to make a remote connection in a database?

540


Is sql server difficult to learn?

530


List few advantages of stored procedure.

544


How to configure odbc dsn with different port numbers?

568


Why would you call update statistics?

592