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 can we replace the particular column value of a resulted
set of executed query? I mean write down a sql query to
chane the particular column's value of a resulted set of
executed query

Answer Posted / suma

select decode(salary,2500,1000,3000,2500, 3000) from
employees;
This query will replace the salary column value from
employees.
If the salary is 2500 then 1000 is displayed in the
resultset, else if 3000 then 2500 will be displayed esle
2000 is displayed.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does sql backup shrink transaction log?

916


How do you use a while loop in pl sql?

942


Can a primary key be a foreign key?

971


What is the difference between nvl function, ifnull function, and isnull function?

1052


How do I write a cron which will run a sql query and mail the results to agroup?

915


what is recursive stored procedure? : Sql dba

932


What is trigger and how to use it in sql?

956


What are aggregate and scalar functions?

978


What is difference between pls_integer and integer?

910


What are different functions in sql?

899


What are two statement types in sql?

1033


Which is better trigger or stored procedure?

882


What are sql data types?

953


What is the difference between a subquery and a join?

1014


explain about mysql and its features. : Sql dba

972