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 a.*,d.* from dept a
left join emp d on a.deptno=d.deptno where d.deptno is null

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain trigger and its types?

618


What is raiseerror? What is raiseerror?

648


What are the operating modes in which database mirroring runs?

611


code to create procedure for taking databse backup in sql server or i have the query for it but what it's query returns means i want to show on my jsp that the databse backup has been taken on the basis of that return value.does it returns 0 or 1.wat is the code for that

1758


Define outer join?

540






How do you know if sql server is running on your local system?

546


Which are the third-party tools used in sql server and why would you use them?

496


What is model database? : SQL Server Architecture

574


Explain aggregate functions?

567


How to use subqueries with the in operators in ms sql server?

569


What is tabulation?

564


Is mysql the same as sql server?

515


What is blocking?

571


What is the difference between varchar and varchar types?

568


Write a SQL queries on Self Join and Inner Join.

619