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 primary key sql?
How to make a copy values from one column to another in sql?
Can we update views in sql?
What is data manipulation language?
Are stored procedures compiled?
How many clustered indexes can you have?
Explain about various levels of constraint.
Why self join is used in sql?
Why we use joins in sql?
Why do we need pl sql?
Can a table have no primary key?
what are wild cards used in database for pattern matching ? : Sql dba
What is PL/SQL Records?
What is relationship? How many types of relationship are there?
What is sql trigger example?