The following subquerry generates a message stating: "Server: Msg 8114, Level 16, State 5, Line 1
Error converting data type varchar to numeric."
(cast(refNo as nvarchar(200))+' '+cast(orgNo as nvarchar(200))+' '+
(cast((select top 1 modifier from PayrollTable
join BudgetTable
on PayrollTable.pbmID = BudgetTable.pbmID
where BudgetTable.pbmID = BudgetTable.pbmID
and PayrollTable.pbdSequence = 1)as decimal(6,3))* 100))
The desired end result:
refNo orgNo modifier
12345 61 100.000
I am aware the modifier field is the problem. However it is very important to my client that the modifier field follow the 3 digits, 3 decimal places (e.g. xxx.xxx) format.
How do I maintain this format and change to a compatible data type.
Any assistance will be greatly appreciated.
Error converting data type varchar to numeric."
(cast(refNo as nvarchar(200))+' '+cast(orgNo as nvarchar(200))+' '+
(cast((select top 1 modifier from PayrollTable
join BudgetTable
on PayrollTable.pbmID = BudgetTable.pbmID
where BudgetTable.pbmID = BudgetTable.pbmID
and PayrollTable.pbdSequence = 1)as decimal(6,3))* 100))
The desired end result:
refNo orgNo modifier
12345 61 100.000
I am aware the modifier field is the problem. However it is very important to my client that the modifier field follow the 3 digits, 3 decimal places (e.g. xxx.xxx) format.
How do I maintain this format and change to a compatible data type.
Any assistance will be greatly appreciated.