I have a table with 3 columns. customer_name varchar, account_typevarchar , current_balance_amount double precision.
this table having the following records.
current_balance 1200 1500.5 1500
If I execute the select query the above records are displayed. I want the current_balance amount as like the following formate.
current_balance 1200.00 1500.50 1500.00
for that I used the following query:
SELECT
to_char(current_balance,'9999999999999999D99')
FROM bank
the above query giving the formatted output but it adds space at beginning how to solve this is their any better way to formate the amount?