Link to home
Start Free TrialLog in
Avatar of sriramb69
sriramb69

asked on

data type conversion

SqlServer
update   #Scorecard
set value = 'N/A' where value = ' '

This gives Error --
Error converting data type varchar to numeric.
pls someone give me a solution
Avatar of matty1stop
matty1stop

what is the datatype of your VALUE field?
ASKER CERTIFIED SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sriramb69

ASKER

data type of value field is int
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
On the scorecard how do i display as 'n/a' where there is no value.
I want to only display and not update
select isnull(value, 'N/A')
from #Scorecard
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial