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 |
How to insert and update data into a table with "insert" and "update" statements?
How do I setup a sql server database?
What are the new features introduced in SQL Server 2000? What changed between the previous version of SQL Server and the current version?
What is the difference between temp table and table variable?
Can another user execute your local temporary stored procedures?
What is bulkcopy in sql?
What are the recovery models in sql server 2000?
Explain sql server service broker?
What are explicit and implicit transactions?
How many triggers are possible per table?
How should i optimize the time for execution of stored procedure having single input and many output from the different tables?
Explain transaction server explicit transaction?
Oracle (3253)
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)