Viewing 4 posts - 1 through 4 (of 4 total)
Good question but not well presented. Try it on a database which is case sensitive and you get "none of the above"! Case is always important and as they say...
May 5, 2009 at 8:43 am
See 4 posts back for the fix to the error in your query
March 20, 2009 at 7:10 am
Ooops, think I hit the wrong button, this post might be duplicated.
Here is your solution:-
set @sql = ' SELECT x.SaleYear, x.TotalSales
FROM (SELECT SaleYear,
TotalSales= ISNULL((SELECT SUM(TotalSales)
FROM InsSales
WHERE...
March 18, 2009 at 9:28 am
Here you are!!
set @sql = ' SELECT x.SaleYear, x.TotalSales
FROM (SELECT SaleYear,
TotalSales= ISNULL((SELECT SUM(TotalSales)
FROM InsSales
WHERE region= ''NE''
AND SaleYear = y.SaleYear and salesPerson in (''' + @SalesPerson...
March 18, 2009 at 9:25 am
Viewing 4 posts - 1 through 4 (of 4 total)