DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: access97 sql help

  1. #1
    Join Date
    Aug 2001
    Posts
    14
    hi,
    the following:

    SELECT newQuery.tempMonth, Sum(newQuery.forecast)
    FROM newQuery
    GROUP BY newQuery.tempMonth;

    Becomes…

    SELECT newQuery.tempMonth, Sum(newQuery.forecast) AS Expr1
    FROM newQuery
    GROUP BY newQuery.tempMonth;

    In access97, why?
    thanks!

    arage

  2. #2
    Join Date
    Aug 2001
    Posts
    14
    that's why:

    SELECT newQuery.tempMonth, Sum(newQuery.ActivationForecast) AS SumOfActivationForecast
    FROM newQuery
    GROUP BY newQuery.tempMonth;
    thanks!

    arage

  3. #3
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Yes, access doesn't know what Sum(newQuery.forecast) should be named, so it assigns a column name to it.
    Jeff Hunter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width