Question and answer is powered by AnsPress.io
I have selected the sum of prices using the SUM() function from my MySQL database. I am trying with this line.
select("customer, SUM(price) as total_price")
Here, how can I set two decimal places in the MySQL select query?