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 the purpose of self join?

505


How to connect php with different port numbers?

555


Explain the first normal form(1nf)?

563


What to perform pattern match with the like operator?

488


Which operator do you use to return all of the rows from one query except rows are returned in a second query?

572






What are secondary xml indexes?

574


Explain “@@rowcount” and “@@error” in sql server?

541


How check triggers in sql server?

526


List out different types of normalizations in sql server and explain each of them?

559


What is isolation levels?

572


you have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation? : Sql server administration

544


What is command parameter in ssrs?

120


How to insert multiple rows with a subquery?

532


What is serializable?

673


How do you test your database? : sql server database administration

527