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 / ayush

create proc DeptName
begin
select * from emp full join dept on emp.deptno=dept.deptno
where empno is null;
end

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are all views updatable ?

1104


How to create a trigger for insert only?

982


What are approximate numeric data types in ms sql server?

1011


What is the parse query button used for?

982


Is foreign key a primary key?

978


Mention the differences between sql server and mysql.

949


How to select an exiting database using mssql_select_db()?

911


How to get nth highest salary from employee table.

1105


What is a View ? Can we insert, Update and delete a view?

942


What is a natural primary key?

952


You schedule a job to run every minute what will happen if the first job runs more than 1 min? Will the second instance of the job start?

983


How to use column default values in insert statements in ms sql server?

974


What is a dataset and what are the different types of datasets?

125


Difference between uniqe index and uniqe constraint?

918


Is it possible in sql table to have more than one foreign key?

980