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
Can we use update in sql function?
What is record variable?
What is the difference between view and stored procedure?
does sql support programming? : Sql dba
What is the mutating table and constraining table?
What is the difference between rename and alias?
What is db journal file?
What is the difference between sql and mysql?
how is exception handling handled in mysql? : Sql dba
what is 'mysqlshow'? : Sql dba
explain normalization concept? : Sql dba
What is a mutating table and a constraining table?
What is embedded sql in db2?
Can I copy :old and :new pseudo-records in/to an oracle stored procedure?
Is sql better than excel?