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 / ajay sharma

UPDATE mytable set mycolumn = (mycolumn + 1)%2

Is This Answer Correct ?    21 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create stored procedures with parameters in ms sql server?

993


How to drop existing views from a database in ms sql server?

1042


1 01 101 01010

2004


When would you use it?

944


Explain what is it unwise to create wide clustered index keys?

932


can SSRS reports Cache results?

136


What do you mean by sql server 2005 express management tools?

1253


What are the new data types are introduced in sql 2000?

862


Describe how to use the linked server?

1066


what is denormalization and when would you go for it? : Sql server database administration

1118


What is the full form of ddl?

866


What is system stored procedures?

980


You schedule a job to run every minute what will happen if the first job runs more than 1 min? Will the second instance of the job start?

983


Can we perform backup restore operation on tempdb? : sql server database administration

947


What is the difference between insensitive and scroll cursor?

1072