Results 1 to 3 of 3
  1. #1
    nj.astrology is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    4

    need help with a sql

    I have data as shown in xls which I uploaded into a table in access.


    I need to find the sum of counts of hit rate, sum of counts for dec, jan, feb, march ( each month) for each business ( na cards, canada cards). how can I write this sql ?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    What have you tried? What result?

  3. #3
    Tyork is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Oct 2010
    Posts
    35
    Try the following:

    SELECT YEAR(Proc_Date) & Month(Proc_Date), Business, SUM(HitRate), SUM(Count)
    FROM [TableName]
    GROUP BY YEAR(Proc_Date) & Month(Proc_Date), Business

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums