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 / ajay sharma
UPDATE mytable set mycolumn = (mycolumn + 1)%2
| Is This Answer Correct ? | 21 Yes | 4 No |
Post New Answer View All Answers
What is filter index?
What is use of @@ spid in sql server?
How to recreate an existing index in ms sql server?
What type of Index will get created after executing the above statement?
How to enable/disable indexes?
What is a database table?
What are the limitations in ssrs on sql server express edition?
Explain transaction server isolation?
What is the function of inner join?
What triggers long term care?
What is meant by datasource?
What are the types of ssrs?
What is an index in sql?
Explain what you mean by 3 tier architecture.
Which are the olap features?