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 |
Tell me about Triggers?
What are the difference between clustered and a non-clustered index?
In one interview...interviewer ask me question pleas tell me sql server architecture.. can any body tell me the sql server architecture with digram
What is the Main Difference between ACCESS and SQL SERVER?
What are the different types of sub-queries?
How to rename an existing table with the "sp_rename" stored procedure in ms sql server?
write query for fourth maximum salary from employee table
14 Answers Mind Tree, SP Software,
How to execute multiple stored procedures at one time in sql server?
How to include text values in sql statements?
What are rows and columns?
What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?
11 Answers World Tech, Yardi Software,
What does it mean to manipulate data?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)