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...

Consider a table with 8 rows 4 rows contains value 0 and 4
rows contains value 1.Now write a single update query to make
all 0's as 1 and all 1's as 0

Answer Posted / shaheem ck

UPDATE <tablename>
SET <columnname> = DECODE(<columnname>,0,1,
1,0,
<columnname>);

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I change procedure name in sql server?

1037


What is a mixed extent?

998


What is a ddl statement?

894


What is difference between standardization and normalization?

1069


What area unit the various kinds of info compression introduced in sql server 2008?

1067


How to create a new table in a given schema?

1167


Explain important index characteristics?

1020


What are the five characteristics of good data?

900


What is sparse columns of sql server 2008?

1031


If you want to send some data from access database to sql server database. What are different component of ssis will you use?

962


What is lookup override?

1012


Using the customer, and order table in northwind database, please write a query to produce xml?

1055


What command would you use to create an index?

1041


Can primary key be null?

919


What is the difference between char and varchar2 datatype in sql?

1052