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 / madhu sudhan g

Hiii Lets take a table Test contains one field No having 8
rows in that 4 rows are with 0's and 4 rows with 1's to update

Update Test
SET No=case when 1 then o
else 1
ENd

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is standby servers? Explain types of standby servers.

995


Can we call stored procedure in view in sql server?

896


What is mean by dml?

1003


what are the disadvantages of cursors? : Sql server database administration

1029


Do you know the policy based administration feature of sql server 2008?

955


What is the security principal at the database level that represents your session?

939


What is microsoft sql server?

969


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

974


Tell me what is use of except clause? How it differs from not in clause?

960


Why would you call update statistics?

1014


What are the different normalization forms?

1106


What is the maximum length of an alert name?

999


What is partition index in sql server?

1118


Which is the main third-party tool used in sql server?

938


Why we use functions in sql server?

1076