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

How many types of stored procedures are there in sql server?

1020


What is merge join?

1202


What are the basic functions for master, msdb, model, tempdb and resource databases?

995


What does it mean to normalize a database and why would you do it?

984


What are the new features are introduced in sql server 2012 reporting services?

150


Find nth lowest salary or get nth lowest salary?

1029


What are the 3 types of schema?

1114


How to stop a loop early with break statements in ms sql server?

1023


How to create a login account in ms sql server to access the database engine using "create login" statements?

1151


Define views.

1018


What is transaction server consistency?

1054


What is transaction server implicit?

1015


How to list all objects in a given schema?

1064


What is the difference between delete and truncate statements?

1085


Can we insert data into a view?

1143