Thursday , June 13 2024

ABS Function in SQL Server(TSQL)

The ABS function returns the positive value of a negative number. The return data type is the data type of the input parameter. The ABS function has no effect on 0 and positive numbers.

Below you can see how the ABS function behaves at different values.


About dbtut

We are a team with over 10 years of database management and BI experience. Our Expertises: Oracle, SQL Server, PostgreSQL, MySQL, MongoDB, Elasticsearch, Kibana, Grafana.

Leave a Reply

Your email address will not be published. Required fields are marked *