Link to home
Start Free TrialLog in
Avatar of hojohappy
hojohappy

asked on

SQL Server Select SUM

I am getting error "datatype nvarchar(max) is invalid for sum...".  

SELECT SUM([ProductTaxonomy.csv].[YTD Sales Amount])
FROM [ProductTaxonomy.csv]
WHERE NOT EXISTS
(SELECT [Product Management.csv].[Product_Code] FROM [Product Management.csv] WHERE [ProductTaxonomy.csv].[Product Code] = [Product Management.csv].[Product_Code])
SOLUTION
Avatar of PortletPaul
PortletPaul
Flag of Australia 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
ASKER CERTIFIED 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
of course, doh! what was I thinking - sorry
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