Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to change the name of a database user?

945


What is unique key constraint?

1032


What is the full form of dql?

974


When would you use the stored procedures or functions?

992


What is difference between rownum and row_number?

947


What is the most common trace flags used with sql server?

1029


How to check parameter value in stored procedure sql server?

959


How to find out what is the default collation in a database?

1107


What is sql server profiler?

988


What is Sqlpaging in SqlServer 2005 ?

1046


How to Insert multiple rows with a single insert statement?

1037


What are the differences between left join and inner join in sql server?

1085


What is “begin trans”, “commit tran”, “rollback tran” and “savetran”?

1005


Will count(column) include columns with null values in its count?

1077


What is 5nf in normalization form?

979