Microsoft
Software
Hardware
Network
Question : SQL round decimal
In a large select stmt, on of the columns I am reading from contains a number (double). This column may contain a whole number, or may contain a decimal. Sometimes the decimal is very long.
I am looking to round the decimial to 4, but only when required. If the number is whole or less than 4 decimals I prefer it stay that way.
How would I do this?
I am quering against a DB2 database
Answer : SQL round decimal
Oh I see what you're asking. Does this work?
SELECT (ROUND(MyNumber*10000),0)/
10000
Random Solutions
is there a way to export GFI webmonitor Rules on isa 2006 for webgrade filter
Sonicwall E5500 bandwidth/shaping vs Packetlogic PL5600
Exchange 2010 Remote Connectivity, SMTP
integrated wordpress into site. blog pic attachments not working.
Server security analysis to determine patch level
on a web application connecting to oracle. Finding a user session from their computer to oracle
RPG III program will not execute inside a RPG IV program (error message: MCH3401)....
Datareader object is already open message
detect startmenu sortcuts who's target no longer exists
How do I identify if I have RAID array setup?