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

What is application role in sql server database security? : sql server security

1055


What will be the maximum number of index per table?

1001


What is identity?

1013


What is 3nf normalization form?

1111


What is the purpose of optimization?

994


What are the 2 types of classifications of constraints in the sql server?

1120


Tell me can we use custom code in ssrs?

1001


How to list all login names on the ms sql server?

1138


How can you stop stored procedures from recompiling?

900


What happens if null values are involved in string operations?

984


What are the different types of backups avaialabe in sql server 2005?

1018


What is lock escalation and what is its purpose?

973


Can multiple columns be used in sql group by clause in ms sql server?

1049


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

967


Why use sub query in sql server and list out types of sub queries?

998