i have some experience with MySQL but none with SQL Server, i have a computer who host a database (SQL Server 2000) and i have local access to it. The think is that one column of the table NomAntiguedad need to be change from a given date period; I need to multiply by 0.01 all the values of the column between the values of mesano (05/2007 to actual date, format: MM/YYYY).
How can i have VISUAL access to the data base, like when i administrate my data bases on PhpMyAdmin in order to see the tables format?
What would be the syntax of the command to do what i need?
There’s the defacto SQL Server Management Studio (Express Edition is free), or Toad for SQL Server (free if <5 people use it in-house) applications…
You need to use an UPDATE statement:
Mind that you might have to use CAST/CONVERT to explicitly handle the data type returned from the “.01 * your_column” calculation because you could be loosing precision depending on the column’s data type.