[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

SQL Data type

What is the proper data type to get
NNNNNNNN

to 4 decimal places
0
lrbrister
Asked:
lrbrister
2 Solutions
 
RehanYousafCommented:
SELECT CONVERT(DECIMAL(12,4),10000)

BTW if you provide an example and desired result ... it will help
0
 
Scott PletcherSenior DBACommented:
SELECT CAST(column_name AS decimal(12, 4))
FROM ...

or

SELECT CAST(hardcoded_value AS decimal(12, 4))
0
 
lrbristerAuthor Commented:
Thanks
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now