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

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

994


What are character functions in sql?

943


what is the difference between $message and $$message? : Sql dba

1003


how to fetch common records from two tables? : Sql dba

1182


What is trigger in sql and its types?

1069


What is primary key and foreign key?

966


What does 0 mean in sql?

969


What is the difference between join and natural join?

933


What is equi join in sql?

1083


What is data control language?

994


What is the maximum database size for sql express?

1032


What is the source code of a program?

1075


Explain ddl statements in pl/sql?

1013


How do sql databases work?

1004


What is the importance of sqlcode and sqlerrm?

1357