Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Issue Casting as either decimal or integer

$
0
0
i am trying to multiply the duty rate (a decimal) by the Total Value, which can be decimal.

CAST (D.Duty_Rate as decimal(22,8) * Sum(M.TOT_EXT_COST) as Duty_per_Part

As written, i get the an error ...... Incorrect syntax near '*'.
<

Viewing all articles
Browse latest Browse all 3145

Trending Articles