Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / amit

UPDATE T
SET A = B, ENVDOR_NUMBERB = A

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a trigger? : Sql dba

1041


What are all the different normalizations?

1039


What are types of joins?

970


What is union and union all keyword in sql?

1054


What is sql trigger example?

1075


Why commit is not used in triggers?

1049


Is it possible to sort a column using a column alias?

1056


Can delete statement be rollbacked?

992


i have some prob lem to tell me about my self in interview first round ...

2169


Why is there a need for sqlcode and sqlerrm variables?

1058


What is pl sql collection?

979


What is thread join () in threading?

1019


Is sql a dbms?

1022


Can we create table in function?

973


What is sp_helptext?

1071