About 7,810,000 results
Open links in new tab
  1. Difference between numeric, float and decimal in SQL Server

    Jun 29, 2009 · Exact Numeric Data Types decimal and numeric - MSDN numeric = decimal (5 to 17 bytes) will map to Decimal in .NET both have (18, 0) as default (precision,scale) parameters in SQL …

  2. How to store decimal values in SQL Server? - Stack Overflow

    Sep 11, 2015 · 302 I'm trying to figure out decimal data type of a column in the SQL Server. I need to be able to store values like 15.5, 26.9, 24.7, 9.8, etc I assigned decimal(18, 0) to the column data type …

  3. Rounding off to two decimal places in SQL - Stack Overflow

    I need to convert minutes to hours, rounded off to two decimal places. I also need to display only up to two numbers after the decimal point. So if I have minutes as 650, then hours should be 10.83...

  4. sql - How do I interpret precision and scale of a number in a database ...

    37 Precision, Scale, and Length in the SQL Server 2000 documentation reads: Precision is the number of digits in a number. Scale is the number of digits to the right of the decimal point in a number. For …

  5. Truncate (not round) decimal places in SQL Server

    The given SQL results in 10.01, which is a correct rounding of 10.0055 to two decimal places. If the final parameter is not 0, the value is truncated (to 2 decimal places) to 10.00.

  6. Write a number with two decimal places SQL Server

    Jan 13, 2021 · Generally you can define the precision of a number in SQL by defining it with parameters. For most cases this will be NUMERIC(10,2) or Decimal(10,2) - will define a column as a Number with …

  7. How to convert integer to decimal in SQL Server query?

    Apr 23, 2012 · A column height is integer type in my SQL Server table. I want to do a division and have the result as decimal in my query: Select (height/10) as HeightDecimal How do I cast so that the …

  8. sql - VARCHAR to DECIMAL - Stack Overflow

    I want to convert a varchar(max) column to decimal(10,4). When I try to use cast or convert I am getting an arithmetic overflow exception. The issue is that the data stored in the varchar column may

  9. Should you choose the MONEY or DECIMAL(x,y) datatypes in SQL Server?

    I'm aware that money is specific to SQL Server. I want to know if there is a compelling reason to choose one over the other; most SQL Server samples (e.g. the AdventureWorks database) use money and …

  10. How to display two digits after decimal point in SQL Server

    Nov 21, 2013 · This question is similar to: how to get 2 digits after decimal point in tsql?. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that …