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

Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?

112


How to create sub reports?

226


How to write character string constants or literals in ms sql server?

958


Do you know exporting and importing utility?

972


What is a transactions?

970


Explain log shipping?

957


What is the use of group by clause?

899


How do I delete a sql server database?

984


What are cursors? Explain different types of cursors. What are the disadvantages of cursors? How can you avoid cursors?

1115


Explain “row_number()” in sql server with an example?

947


What is @@rowcount in sql?

949


What method is used by the Command classes to execute SQL statements that return single values?

1003


Explain the properties of sub-query in sql server?

953


What is precedence constraint?

923


What options are available to audit login activity? : sql server security

1091