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 full form of rtm?
what is meant by nl2br()? : Sql dba
What does pragma mean?
Why sql query is slow?
What is rollback?
What are the advantages of sql?
what is msql? : Sql dba
What is record data type?
What is an escape character in sql?
What is the difference between local and global temporary table?
What is integrity in sql?
What is normalisation in sql?
Why do we create views in sql?
What is the main difference between sql and pl/sql?
What can sql server reporting services do?