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 is the advantage of specifying WITH GRANT OPTION in the GRANT command?
What is Covering Indexes? Plz explain with example
Give an example of SQL injection attack ?
Mention the different types of replication in sql server.
What are subqueries in sql server? Explain its properties.
Tell me what is sql profiler?
how many bits ip address consist of? : Sql server database administration
How do you find the number of rows in a table?
How column data types are determined in a view?
What is the difference between Clustered and Non-Clustered Index?
How to delete exactly duplicate records from a table?
How to create an index on a view?