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 you please differentiate between a primary key and a unique key?

1048


Explain indexes disadvantages?

1141


What types of Joins are possible with Sql Server?

1191


Do you know what is difference between stored procedure and user defined function?

1153


What is a not null constraint?

1088


What is the process of normalization?

1180


Write a query to find 5th highest amount paid from the customer table.

988


What is the difference between a stored procedure and a user defined function?

1062


What is normalization 1nf 2nf 3nf?

1109


What is scan table/view and seek table/view when its occurs? : sql server database administration

1088


Define views.

1068


Explain the difference between function and stored procedure?

996


How do I find query history in sql server?

988


What is best institute to Learn DotNET And SQL in chennai?

2219


What is stretch database in sql server?

1120