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 / madhuparna bhaumik

/*stored procedure for emplpoyee and department table
to get DeptName which having no employee*/

CREATE PROCEDURE sp_myStoredProcedure
AS
select * from emp full join departments on
emp.department_id=departments.department_id
where employee_id is null;
Go

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between user defined functions and stored procedures?

1003


Explain the stored procedure?

991


Where are sql server usernames and passwords stored in the sql server?

1042


OPTIMIZATION OF SP,CURSOR,TRIGGERS

2705


What is your recommendation for a query running very slow? : sql server database administration

992


How to deploy the Report?

125


How efficient you are in oracle and SQL server?

1086


when you create a database how is it stored? : Sql server database administration

940


What type of Index will get created after executing the above statement?

1044


Explain aggregate functions?

1026


How to make remote connection in database?

953


Explain what are the events recorded in a transaction log?

936


Explain what role entity and relationship play in an ER diagram.

1016


What is the use of set nocount on/off statement?

1026


How can I change procedure name in sql server?

972