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...

How to update salary of employees department wise?

Answer Posted / meher.shareen

begin
update emp set sal=sal+1000
where deptno=10;
update emp set sal=sal+2000
where deptno=20;
update emp set sal=sal+3000
where deptno=30;
update emp set sal=sal+4000
where deptno=40;
end;

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I learn sql in a week?

1043


Can we alter stored procedure?

967


Why should I use postgresql?

998


How is sql used in oracle?

993


What is the sql query to display the current date?

1025


Why functions are used in sql?

973


What is scope and visibility in PL/SQL?

1177


Advantages and disadvantages of stored procedure?

1096


What is assignment operator in pl sql?

1014


What is procedure in pl sql?

1020


How many triggers can be applied to a table?

1038


Explain aggregate functions are available there in sql?

977


What is view explain with example?

919


How many types of cursors are available in pl/sql?

1081


What are the two types of periodical indexes?

923