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 / divya c
(y!=x)||(x!=y)?x=y,y=x:y=x,x=y;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you explain an index number?
How to call a javascript function from pl sql?
Why cannot I use bind variables in ddl/scl statements in dynamic sql?
What are the three pl sql block types?
How do I find duplicates in sql?
what is a materialized view? : Sql dba
Is record in oracle pl sql?
explain the difference between delete , truncate and drop commands? : Sql dba
Why cross join is used?
what are the join types in tsql? : Transact sql
How do I save the results of sql query in a file?
How can check sql version from command line?
What is write ahead logging in sql server?
How to look at the current sql*plus system settings?
How can you tell the difference between an index and a view?