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
In what condition is it good to disable a trigger?
what are the differences among rownum, rank and dense_rank? : Sql dba
What are the different types of joins in sql?
What are the benefits of pl sql?
how many values can the set function of mysql take? : Sql dba
column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.
What normalization means?
what is 'trigger' in sql? : Sql dba
What is scalar data type in pl sql?
Why is sql important?
Can we use insert statement in function?
What is compiled query?
What is orm in sql?
What is a scalar value in sql?
What is information schema in sql?