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 / vicky saini

Update (tablename) set (coulmn name)=1 where (coulmn name)
=0

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to change the ownership of a schema in ms sql server?

1199


What is query parameter in ssrs?

163


What are different types of subquery?

1250


What action plan is preferred if sql server is not responding?

1108


How would you choose between a clustered and a non-clustered index?

980


What is the difference between varchar and varchar types?

1077


What is the library index called?

1062


How do I delete a sql server database?

1048


Explain subquery and state its properties?

1051


How do we know if any query is retrieving a large amount of data or very little data?

979


Explain what is log shipping?

1141


Can a trigger be created on a view?

961


Where does the copy job runs in the log shipping primary or secondary? : sql server database administration

1045


Which Model uses the SET concept

993


What is normalization and denormalization in sql server?

1021