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

According to you what goes into making the best database administrator? : sql server database administration

949


What is transact-sql ddl trigger?

1062


How do you identify a foreign key?

985


Explain the steps to use transact-sql cursor?

982


What is instead of trigger sql server?

948


When would you use the stored procedures or functions?

961


Explain steps of normalization?

948


Explain primary key and foreign key constraints?

973


Why use view instead of a table?

896


what is the maximum size of a row? : Sql server database administration

963


What is clustered vs nonclustered index?

894


What are the common performance issues in sql server?

881


How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?

163


How to filter records of table in SQL SERVER?

1036


What is proper subset of candidate key?

953