How would you Update the rows which are divisible by 10,
given a set of numbers in column?
Answers were Sorted based on User's Feedback
Answer / pandian s
UPDATE TableName SET Column1 = <Value>
WHERE ColumnName % 10 = 0
Is This Answer Correct ? | 8 Yes | 2 No |
Answer / bala
update <table> set <col> = <value> where round(<col>/10,0)
= (<col>/10)
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / picture12345
select * from TableName where ColumnName%10=0
Is This Answer Correct ? | 7 Yes | 10 No |
What do you mean by a Composite primary key?
What are the advantages dts has over bcp?
What is updatable resultset?
What is data source object?
Delete duplicate rows from a table without primary key by using a single query Table Employee empname salary A 200 B 300 A 200 C 400 D 500 D 500 Output should be A 200 B 300 C 400 D 500
Does the order of columns in update statements matter?
What types of integrity are enforced by a foreign-key constraint
What are the transaction properties?
What is index, cluster index and nonclustered index?
Can sql server be linked with other servers like oracle?
can any one please send sql quries most used in applications.
What is difference between equi join and natural join?