adspace


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 tables will create when we create table, what are they? : Sql dba

1156


define sql insert statement ? : Sql dba

1110


Is primary key always clustered index?

1101


What is the current version of postgresql?

1188


Do we need to rebuild index after truncate?

1154


what is schema? : Sql dba

1163


Can we use distinct and group by together?

1147


how to start mysql server? : Sql dba

1279


Is inner join faster than left join?

1287


What is the best sql course?

1064


If a cursor is open, how can we find in a pl/sql block?

1252


Can we rollback truncate?

1083


Does group by remove duplicates?

1121


What is your daily office routine?

2353


how to escape special characters in sql statements? : Sql dba

1124