1
In the table of products of the bank there is a field valor that has the type varchar(255)
Observe the query :
Consultation
SELECT
valor                        as valor_original,
CAST(valor AS DECIMAL(18,2)) as valor_convertido
from
produtos 
Upshot
valor_original | valor_convertido
170,00           170.00
204,80           204.00
447,95           447.00
170,00           170.00
209,00           209.00
230,40           230.00
139,00           139.00
209,00           209.00
315,00           315.00
230,40           230.00
170,00           170.00
How can I perform a consultation by performing the conversion in decimal
without losing the accuracy of the values ?
you wish to make a
wherewith thevalor_convertido?– novic
Not a simple select even with it converted. I managed to resolve @Virgilionovic thank you for your attention !
– stringnome