SQL Math in Excel VBA
- by Scott
Excel seems to have a problem with doing math in SQL queries.
SELECT (
SELECT sum(column) FROM table1
) + (
SELECT sum(column) FROM table2
) AS total
This technique works completely fine in ASP and ASP.NET. Has anyone had success doing this in Excel VBA? (My database engine is SQL Server 2000.)