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
How do I modify this php script to send a confirmation?
How to avoid zero(s) in front of number(s) disappears in array
Raid 1 Hard drive failed PowerEdge 1850
Need help with 'System.Web.UI.ScriptManag
er is not defined error
Error with RemoveHandler and AddHandler
how can i upload 900 mb file to internet ,is there any website to free upload ?
How to determine coaxial cable
Asterisk - How to detect / trigger using Asterisk Manager API
Best LAN Network Switch Design?
isa 2004 and iis7