I have the following:
Select tp.PH_F pHF, COALESCE(STR(tp.pH_F), tp.pH_S) pH
From tblprod tp
Note that PH_F is a float
I get the following results
PHF PH
--- ---
7.256 7
7.59 8
Why does the STR convert int the Coalesce result in an INT? What I like happen is have it be the same value.
What I like happen is the following:
PHF PH
--- ---
7.256 7.256
7.59 7.59
How can I have this happen with the Coalesce?