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

    Jun 29, 2009 · The parameter supplied to the float data type defines the number of bits that are used to store the mantissa of the floating point number. Approximate Numeric Data Type usually uses less …

  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. Difference between DECIMAL and NUMERIC datatypes in PostgreSQL

    The type numeric can store numbers with a very large number of digits and perform calculations exactly (Emphasis mine). If you need numbers with decimals, use decimal (or numeric) if you need numbers …

  4. Is there any difference between DECIMAL and NUMERIC in SQL Server?

    Apr 17, 2009 · The DECIMAL data type is similar to NUMERIC. ... The difference is that your implementation may specify a precision greater than what you specify — if so, the implementation …

  5. How to change data type of a column in an SQL table from integer to …

    I have assigned the data type of one of the columns of a table I have created as int. My problem is that it is not showing decimal places when I run a query against it. How do I correct the data ...

  6. .net - C# Equivalent of SQL Server DataTypes - Stack Overflow

    SQL Server and the .NET Framework are based on different type systems. For example, the .NET Framework Decimal structure has a maximum scale of 28, whereas the SQL Server decimal and …

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

    I wondered why the money data type has 4 decimals .. and not 2. i.e. 100 cents in a dollar so only 2 decimal places are required? For storing a record of money amounts less than $9999.99, I was going …

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

    The example quoted by would have a precision of 7 and a scale of 2. Moreover, DECIMAL (precision, scale) is an exact value data type unlike something like a FLOAT (precision, scale) which stores …

  9. can we give datatype as decimal (2,2) or decimal (3,3) in SQL server

    Dec 15, 2022 · The following is from the SQL Server docs, which I'd recommend reading through for better understanding. The decimal type is defined as decimal[ (p[ ,s] )] In the above statement, p …

  10. sql - Decimal (19,4) or Decimal (19.2) - which should I use? - Stack ...

    Dec 5, 2014 · In SQL the 19 is amount of integers, the 4 is amount of decimals. If you only have 2 decimals and you store maybe a result of some calculations, which results in more than 2 decimals, …