About 1,610,000 results
Open links in new tab
  1. decimal and numeric (Transact-SQL) - SQL Server | Microsoft Learn

    Mar 31, 2025 · Convert decimal and numeric data. For decimal and numeric data types, SQL Server considers each combination of precision and scale as a different data type. For …

  2. SQL Server DECIMAL Data Type - GeeksforGeeks

    Dec 12, 2023 · In SQL, decimal values are often used to represent floating-point numbers. However, there are instances where we might need to remove decimal places or adjust the …

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

    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 but this …

  4. Understanding the SQL Decimal data type - SQL Shack

    Jul 15, 2019 · The Basic syntax of Decimal data type in SQL Server. Let’s take a look at the basic syntax of SQL Decimal Data type first. It is denoted as below: decimal [(p [,s])] Where, p …

  5. SQL Data Types for MySQL, SQL Server, and MS Access - W3Schools

    In MySQL there are three main data types: string, numeric, and date and time. A FIXED length string (can contain letters, numbers, and special characters). The size parameter specifies the …

  6. Difference between numeric, float and decimal in SQL Server

    Jun 29, 2009 · In Transact-SQL, numeric is functionally equivalent to the decimal data type. Use the decimal data type to store numbers with decimals when the data values must be stored …

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

    Apr 23, 2012 · Identical mechanics governs the simpler and nicer solution in the accepted answer: SELECT height / 10.0. In this case, the type of the divisor is DECIMAL(3,1) and the type of the …

  8. An Essential Guide To SQL Server DECIMAL Data Type

    To store numbers that have fixed precision and scale, you use the DECIMAL data type. The following shows the syntax of the DECIMAL data type: Code language: SQL (Structured Query …

  9. How to Use SQL Decimal Data Type in Your Database

    Apr 14, 2025 · Defining Precision and Scale. In the context of the SQL Decimal data type, precision and scale play a vital role in defining how numbers are stored and manipulated.. …

  10. Numeric vs. Decimal Data Types in SQL - LearnSQL.com

    Oct 12, 2021 · There are two different data types that allow us to store precise numerical data in SQL: NUMERIC and DECIMAL. Both of these types store decimal numbers and use exact …

Refresh