r/SQL • u/Nitroforc3 • Apr 08 '26
MySQL MySQL syntax question
Hello, just a quick question. So I need to return a value back from a query but the number has decimals. I need to round it up to 2 decimal places but I have no idea how. Is there a function I am missing or something else?
Sorry if this does not make sense, basically, I get more that 2 decimals from a query but I want only 2, if that makes sense.
2
Upvotes
View all comments
Show parent comment
2
u/mikeblas Apr 08 '26
Dunno. I can't guess why you'd need a subquery, but I don't have your existing query in front of me so I can't tell.