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 package in pl sql with an examples?
explain the advantages and disadvantages of stored procedure? : Sql dba
State some properties of relational databases?
What is plpgsql language?
How many tables can a sql database have?
How do you remove duplicate records from a table?
What is trigger explain it?
What is audit logout in sql profiler?
What is user in sql?
Is keyword pl sql?
What are tables and fields?
can a stored procedure call itself or recursive stored procedure? : Sql dba
What is a variable in sql?
what is a database transaction? : Sql dba
What is varchar used for?