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
Can we update views in sql?
Is a view faster than a stored procedure?
What are different clauses used in sql?
What version is sql?
How can I see all tables in sql?
Why is sharding used?
What is sqlcontext?
What is scope and visibility in PL/SQL?
Is primary key clustered index?
what are the 'mysql' command line options? : Sql dba
Can we use ddl statements in stored procedure?
What are the key differences between SQL and PL SQL?
what are different types of keys in sql?
What is sql integrity?
What are the various restrictions imposed on view in terms of dml?