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

What is offset in sql query?

822


What is the difference between drop and truncate commands?

704


what is a trigger? : Sql dba

762


What is trigger and types?

759


explain the options of myisamchk to improve the performance of a table. : Sql dba

721






how many ways we can we find the current date using mysql? : Sql dba

812


what are the advantages of mysql in comparison to oracle? : Sql dba

704


Which is faster count (*) or count 1?

757


What are sql constraints?

788


Can two tables have same primary key?

731


What is keys and its types?

751


What is coalesce sql?

700


Is primary key clustered index?

689


Is progress software supports to ( pl/sql )?

717


Can we use the cursor's to create the collection in PL/SQL?

700