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 / ayush
create proc DeptName
begin
select * from emp full join dept on emp.deptno=dept.deptno
where empno is null;
end
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
You want to use a perspective in an mdx query. How do you select the perspective?
What are the advantages of partitioning?
What are trace flags?
What are policy management terms?
how you can get the list of largest tables in a database? : Sql server administration
Explain logical operators in sql server?
What type of locking occurs during the snapshot generation? : sql server replication
How to concatenate two character strings together?
What is the difference between function and stored procedure in sql server?
How to get a list of table columns using the "sp_columns" stored procedure in ms sql server?
What is check constraint in sql server?
How do you set a trace flag in sql server?
What is a coalesce function?
What is data source in connection string?
What are page splits? : SQL Server Architecture