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
Team Foundation Server 2010, deleted web site problem
Application user
php like zen cart want return to be categories instead of products
Netapp - increased LUN volume - resized to gain space - but windows server has not picked up change - what am i Missing please
MS Dynamics 4.0 Outlook Configuration - Microsoft Dynamics CRM server is not available
Session Timeout during Session
number the records in 4gl query
Unattended Windows 7 Installation answer file not working
Excel - VBA text formatting
CCSP certification