Hi ,
i got one requirement like - i need to convert var char data type column rows into money data type or int data.
when i used cast or convert function that time i am getting the below error
"Conversion failed when converting the varchar value '0.5' to data type int ."
Ex:
CREATE TABLE [dbo].[test](
[id] [int] NULL,
[amount] [varchar](50) NULL
) ON [PRIMARY]
insert test values(1,'0.5'),(2,0.4)
Expected output is:
id amount
1 50.00
2 40.00
thanks in advance
franklinsentil