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 / sivaram pothuru

select a.*,d.* from dept a
left join emp d on a.deptno=d.deptno where d.deptno is null

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In which format does an image save in SQL Server database ?

1057


What is normalization of database?

1177


Why and when do stored procedure recompile?

1029


What is page in sql server?

996


Explain active/passive and active/active cluster configurations?

1109


How to create a dynamic cursor with the dynamic option?

1103


How do I get to sql server configuration manager?

1062


What number sorts of privileges are accessible in sql?

1087


How to get the query of a table in sql server?

962


What are the various editions of sql server 2017 that are available in the market?

940


Explain the use of containers in ssis?

1016


How to count rows with the count(*) function in ms sql server?

1060


Do you know how to make remote connection in database?

1008


What do we need queues in sql service broker?

1123


Explain atomicity?

1128