How would you Update the rows which are divisible by 10,
given a set of numbers in column?

Answer Posted / pandian s

UPDATE TableName SET Column1 = <Value>
WHERE ColumnName % 10 = 0

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is de-normalization and what are some of the examples of it?

539


how can u get last observation in an unknown dataset ?

2003


What is primary key, unique key, and foreign key?

542


Define indexes?

609


What do you know about normalization and de- normalization?

473






How do you drop an index?

505


What is a data collection table?

546


What is plan freezing?

586


Is natural join and equi join same?

532


How can we improve performance by using SQL Server profiler?

580


What is the name of the system variable that returns the number of rows affected by a SQL statement?

570


What is 'Join' and explain its various types.

630


How to create user defined functions with parameters?

644


What is difference between delete and truncate commands?

531


Can you move the resources after pausing the node? : sql server database administration

596