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 / vinoth kumar
select * from department where Dept_id
not in(select Dept_id
from employee)
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the difference between sdf and mdf?
What are the source of constraints?
What is difference between index seek vs. Index scan?
How to connect to a sql server using odbc_connect()?
What is built-in function?
How to link tables in sql server?
What is the difference between resultset and resultsetmetadata?
Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.
What is dynamic cursor in SQL SERVER?
What is the default server name for sql server?
What happens if you delete a table that is used by a view?
What is the maximum size per database for sql server express?
Explain Geography datatype in SQL Server
What is the maximum rows in sql server table?
How to create hyperlink from returned sql query ?