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
How many types of relationship are there?
How do I count records in sql?
Do ddl statements need commit?
How do I find duplicates in sql?
What are the two types of exceptions in pl/sql?
Is primary key an index?
how to select unique records from a table? : Sql dba
What is primary key secondary key alternate key candidate key?
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
What is the difference between a procedure and a function?
What is the clause we need to add in function body to return variable?
How do you use a while loop in pl sql?
Is it possible to create the following trigger: before or after update trigger for each row?
How is a process of pl/sql compiled?
What is mdb stand for?