there are 2 variables called x and y ,x contains 1,2 and y
contains 3,4 we have to swap the values from x to y and y
to x with out using dummy variables and it can be done only
by using a single statement ? how?
Answer Posted / santhi k
IN ORACLE...
SELECT DECODE(X,X,Y)X,DECODE(Y,Y,X)Y FROM TABLENAME;
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
What is a parameter query?
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
Does sql*plus have a pl/sql engine?
What is normalisation and its types?
explain the difference between delete , truncate and drop commands? : Sql dba
how to add a new column to an existing table in mysql? : Sql dba
What is mdb stand for?
How many disk partitions should I have?
what is column? : Sql dba
What problem one might face while writing log information to a data-base table in pl/sql?
What is the difference between function and procedure in pl/sql?
how to delete duplicate rows from a join tables(I have three tables on that join) how do you know which join is need to be used? The select statement I have is: SELECT gc_skill_type.skill_type, gc_area_tec.area, gc_technology.technology, gc_technology.id_technology, gc_area_tec.id_area_tec FROM gc_skill_type, gc_area_tec, gc_technology WHERE gc_area_tec.id_skill_type (+) = gc_skill_type.id_skill_type AND gc_technology.id_area_tec (+) = gc_area_tec.id_area_tec order by gc_skill_type.skill_type asc, gc_area_tec.area asc, gc_technology.technology asc
What is rownum and rowid?
Why are aggregate functions called so?
How can we link a sql database to an existing android app?