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 / krishna reddy l

update example set column1 = case when column1=0 then 1
when column1=1 then 0 end

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens if null values are involved in bitwise operations?

1078


What are the types of joins in sql?

1169


Explain log shipping?

1076


In one interview...interviewer ask me question pleas tell me sql server architecture.. can any body tell me the sql server architecture with digram

2076


How to grant a permission in ms sql server using "grant execute" statements?

1134


What is use of attributehierarchyenabled? : sql server analysis services, ssas

1298


What is inner join in sql server joins?

1096


How to use go command in "sqlcmd"?

1264


Explain about merge replications?

1078


How do we synchronize On-Premise SQL server with SQL Azure?

124


What are the restrictions while creating batches in sql server?

1113


Can primary key be null?

982


What specific conditions database should meet, before you can bulk copy data into it using bcp?

1043


What are rows and columns?

1064


Explain the dirty pages?

1050