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

Where to find ntwdblib.dll version 2000.80.194.0?

1011


Is it true that rules do not apply to data already existing in a database at the time the rule is created?

1089


What happens if ntwdblib.dll is missing on your machine?

1189


Explain primary key and foreign key constraints?

1093


You want your report to display a hyperlink that will take users to your intranet. How do you configure such a hyperlink?

319


Why is sql server log file full?

1081


Can I work with several databases simultaneously? : sql server management studio

1034


How can we delete Duplicate row in table?

1114


Explain tablesample?

1041


How to receive returning result from a query?

1193


How to disconnect from a sql server using mssql_close()?

1171


Can you explain powershell included in sql server 2008?

993


What are constraints in microsoft sql server?

1218


What are null values in ms sql server?

1145


Which autogrowth database setting is good?

1096