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

What are different types of statements that are supported by sql?

777


can SSRS reports Cache results?

127


What is difference between rownum and row_number?

695


What is cdc in sql server?

738


What is the syntax to execute the sys.dm_db_missing_index_details?

744






what method you can use to reduce the overhead of Reporting Services data sources?

202


How to invoke a trigger on demand?

728


what are the different stages of Report Processing?

111


i have made a project i vb.net n created a .exe of it after installing it in to any pc, the database (sql express) is not geting accesed i.e the aplication cuts the link of the database, so plz help in this matter.

1577


What is the difference between varchar and nvarchar datatypes?

761


What is Sqlpaging in SqlServer 2005 ?

845


what authentication modes does sql server support? : Sql server database administration

714


What is the default port for SQL Server over a firewall?

783


what is the difference between openrowset and openquery?

758


Explain trigger classes i.e. Instead of and after trigger?

639