About 662,000 results
Open links in new tab
  1. SQL Format Number with CAST, CONVERT and more - SQL Server

    Dec 27, 2024 · Use SQL format number functions like CAST, CONVERT, ROUND, CEILING, FLOOR and FORMAT for number formatting in SQL.

  2. How to Format Numbers in SQL Server - Database.Guide

    Starting from SQL Server 2012, you can format numeric types using the T-SQL FORMAT() function. This function accepts three arguments; the number, the format, and an optional …

  3. Format Number with Thousands Separator in SQL Server

    Nov 13, 2023 · This SQL Server tutorial explains how to format number with thousands separator in SQL Server using the FORMAT(), CONVERT() and CAST() functions.

  4. SQL Server FORMAT() Function - W3Schools

    Dec 1, 2018 · The FORMAT() function formats a value with the specified format (and an optional culture in SQL Server 2017). Use the FORMAT() function to format date/time values and …

  5. sql server - How do I format a number with commas in T-SQL?

    Dec 7, 2010 · In SQL Server 2012 and higher, this will format a number with commas: select format([Number], 'N0') You can also change 0 to the number of decimal places you want.

  6. Formatting Numbers in SQL Server

    In this tutorial, we explored various SQL Server T-SQL functions that can be used to format numbers. By using functions such as CAST, CONVERT, ROUND, FLOOR, CEILING, and …

  7. SQL FORMAT Function Use and Examples - SQL Server Tips

    Apr 27, 2025 · Learn how to format numbers, dates, time and money using the SQL Server FORMAT function with these examples.

  8. 4 Functions to Format a Number to 2 Decimal Places in SQL Server

    Feb 9, 2022 · Below are four functions that can be used to format a number to two decimal places in SQL Server. The most obvious way to do it is to convert the number to a decimal type. Two …

  9. How to Format Numbers with Leading Zeros in SQL Server

    Nov 8, 2023 · Learn how to format numbers with leading zeros in SQL Server using FORMAT() function and Format Number with Leading Zeros in SQL Server Using Right and Convert …

  10. Is there any simple way to format decimals in T-SQL?

    Jul 15, 2016 · For controlled formatting of numbers in T-SQL you should use the FORMAT() function. For example: The result will be: The arguments to the FORMAT() function are: The …

  11. Some results have been removed
Refresh