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 / sql pro

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

select d.dept_name
from dept d
left join empl e
on d.dept_id = e.dept_id
where e.dept_id is null

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do I need a report server to run reports in my application?

153


Where the sql logs gets stored? : sql server database administration

914


Tell me what is a linked server?

986


Name 3 of the features that the sql server built-in function loginproperty performs on standard logins? : sql server security

1047


Can we delete data from a view?

880


What is the difference between join and inner join?

952


What is sql view?

952


Can we write trigger for view?

944


Can you explain important index characteristics?

935


How to generate random numbers with the rand() function in ms sql server?

1044


can SSRS reports Cache results?

136


Which database stores information about replication?

986


explain different types of cursors? : Sql server database administration

1023


Tell me what is normalization? Explain different forms of normalization?

980


How can you manage sql azure security?

101