I am trying to convert decimal values into non decimal number for a computed column in Oracle SQL.
Please see the below code. But I am not able to get the desired output. Query:
Select cast(cost_account)*100/cast(amnt_fin) as "computed_LTV" From Loan_app.
Here I Want a new column name as computed_LTV with the required calculation with no decimal in the output.
computed_LTV
It is ROUND you're looking for, I presume.
ROUND
SELECT ROUND (cost_account * 100 / amnt_fin) AS "computed_LTV" FROM Loan_app
2.1m questions
2.1m answers
60 comments
57.0k users