If I have a table T with 4 rows & 2 columns A & B. A has
values 1,2,3,4. and B has 10,20,30,40. Write an Update SQL
query which can Swap the values of A & B for all records.
(Do not use a sub-query)
Answer Posted / avi007
select A as "B",B AS "A" from T;
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is autocommit sql?
What is the difference between clustered and non-clustered indexes?
how to create a new table by selecting rows from another table in mysql? : Sql dba
What is difference between stored procedures and application procedures?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
Why use stored procedures?
What is cost in sql execution plan?
What is database sql?
Mention what pl/sql package consists of?
How does left join work in sql?
What company owns postgresql?
what is the difference between $message and $$message? : Sql dba
What is a data manipulation language?
How would you convert date into julian date format?
Is sql microsoft?