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 schema means?
How do sql triggers work?
If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????
What is AUTH_ID and AUTH_USER in pl/sql ?
How does sql profiler work?
Is postgresql a nosql database?
What is set transaction?
What is java sql driver?
What is sql*plus?
Can a foreign key be a duplicate?
What is a unique key?
Is pl sql different from sql?
what is the difference between $message and $$message? : Sql dba
Explain two easy sql optimizations.
How can you create an empty table from an existing table?