I have posted a question here earlier and got an awesome answer! Stuck in building mysql query
But it lacks a one moment!
I am having a column in mysql table, defined as:
`bet_price` float(10,2) NOT NULL DEFAULT 0.00,
For a certain row the value is: 10000
A query like: SELECT bet_price, MIN(bet_price) AS min_price WHERE ID = :id
Will return a data like this:
bet_price | min_price
---------------------
10000 | 10000.00
And in queries this part fails for me.
I've tried to use a functions like FORMAT
and TRUNCATE
- but this did not help me.