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 / ramakanth
y=x+y-(x=y)
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
What is normalisation in sql?
How to load data with sql*loader?
What is the difference between the conventional and direct path loads? : aql loader
What is sql basics?
How do you remove duplicate records from a table?
How do I view a view in sql?
how to use like conditions? : Sql dba
What is an exception in PL/SQL? What are the two types of exceptions?
How you can copy a file to file content and file to pl/sql table in advance pl/sql?
What is oracle sql developer?
What is the difference between a query and a report?
What are inner outer left and right joins in sql?
what is denormalization. : Sql dba
Does asenumerable execute the query?
how does a local variable is defined using t-sql? : Transact sql