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

What is transact-sql language?

1135


What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas

1321


Where can you find the error log information? : sql server database administration

1072


Are null values the same as that of zero or a blank space?

1093


What are the security related catalog views? : sql server security

994


Can you get second highest salary from the table?

1010


What happens when transaction log is full?

995


What is BCNF? How is it better than 2NF & 3NF?

1068


Which autogrowth database setting is good?

1096


What is a ddl statement?

964


Explain syntax for dropping triggers?

969


List all types of constraints in sql server?

1098


Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.

1052


What is subquery in sql?

1131


What do you understand by replication in sql server?

1129