-
What is the difference between ROUND and TRUNC function in SQL? ">
What is the difference between ROUND and TRUNC function in SQL?
Both TRUC and ROUND are single value functions. TRUNC: TRUNC function truncates that is in other words cuts off to the digits specified. The general syntax of TRUNC function is: TRUNC(number, precision); For instance: Suppose the value of salary in employee table for ename= ’Exforsys’ is 55.666 Then Select TRUNC(salary,2) from employee where ename=’Exforsys’;...