Home > database >  How to show digits after points in SQL?
How to show digits after points in SQL?

Time:12-03

I use free online SQL editot:

enter image description here

CodePudding user response:

You may force decimal division by using a decimal either in the numerator or denominator:

SELECT first_name, 9.0 / 5 AS val  -- 1.8
FROM customers;
  •  Tags:  
  • sql
  • Related