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

What is sql dialect?

1041


How to use boolean type in select statement?

997


What are the various levels of constraints?

1061


How do you write a complex sql query?

1011


what are the performance and scalability characteristics of mysql? : Sql dba

944


how many values can the set function of mysql take? : Sql dba

935


how to rename an existing table in mysql? : Sql dba

1008


What is the purpose of design view?

953


GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?

3010


What is bitemporal narrowing?

1235


Can we use pl sql in mysql?

963


Explain lock escalation? : Transact sql

1144


what are date and time functions in mysql? : Sql dba

927


Is sql better than excel?

1064


what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba

1068