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
How column data types are determined in a view?
What are the hotfixes and patches in sql server?
Where the sql logs gets stored? : sql server database administration
How to list all schemas in a database?
What is the importance of concurrency control?
how you can list all the tables in a database?
What are the various editions of sql server 2017 that are available in the market?
What is instead of dml trigger?
How to list all user defined functions in the current database?
What is the use of keyword with encryption. Create a store procedure with encryption?
Do you know spatial data types - geometry and geography in sql server 2008?
How to Sync Two SQL Azure Databases?
What are null values in ms sql server?
How to find the login name linked to a given user name?
What are the differences in Clustering in SQL Server 2005 and 2008 or 2008 R2?