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 are the characteristics of modern DBMS?

1078


How to get a list of table columns using the "sp_columns" stored procedure in ms sql server?

1000


What are different types of collation sensitivity?

978


Explain encryption of entire databases without the need for application changes in sql server 2008?

1026


Is t sql the same as sql server?

951


What are the encryption mechanisms in sql server?

1010


What will be the value of @@fetch_status if a row that was a part of the cursor resultset has been deleted from the database after the time the stored procedure that opened the cursor was executed?

1122


Can we insert data into a view?

1121


What structure can you implement for the database to speed up table reads?

1182


How to use linked server?

1166


What is rank function?

1016


How to connect ms access to sql servers through odbc?

1011


How will you monitor replication latency in transactional replication? : sql server replication

1124


What are trace flags?

1012


Explain what you mean by 3 tier architecture.

1061