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 move database physical files in ms sql server?

1008


what do you understand by change data capture?

978


How do I view views in sql server?

987


What are commit and rollback in sql?

1098


When I run the sql server 2000 setup, it just hangs. What do I do?

1065


what kind of lan types do you know? : Sql server database administration

964


What is nonclustered index with included columns ?

947


Explain the properties of a relational table?

1007


Can I use sql azure as a backup with log shipping or database mirroring?

156


What program is used to store the data source file?

942


Explain the steps needed to create a scheduled job?

912


What are the difficulties faced in cube development? : sql server analysis services, ssas

1019


What happens if an integer is too big for int date type?

957


How to drop an existing schema in ms sql server?

1078


What is collation?

1126