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

Which are the different character-manipulation functions in sql?

1070


How many types of privileges are available in sql?

1350


How do I enable sql encryption?

1035


define sql insert statement ? : Sql dba

1034


How does postgresql compare to oracle/db2/ms sql server/informix?

1039


What is sqlerrm?

943


If the application is running very slow? At what points you need to go about the database in order to improve the performance?

1004


What is self-join and what is the requirement of self-join?

1153


How do you delete data from a table?

1047


Explain what is a database?

1089


How to get help at the sql prompt?

1121


How much does sql certification cost?

1095


How will you distinguish a global variable with a local variable in pl/sql?

1158


Is natural join and inner join same?

932


What is a pl/sql block?

1236