Results 1 to 6 of 6
  1. #1
    lotto009 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Posts
    3

    Smile Need to query maximum number in hour per day every cell ID

    Dear All
    I need to know about "Need to query result from access2007 find only "one maximum number" in hour per day every cell ID"
    How I use sql command


    you can see my file att
    Thank you verymuch
    Attached Thumbnails Attached Thumbnails find maximum number.jpg  
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,967
    Your requirement doesn't make sense to me. The sample data has 73 records, grouping by date, hour, UCellID returns all 73. What records do you want the query to retrieve?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    lotto009 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Posts
    3
    Dear June
    So sorry for my requery I just mean
    -how to query "SHO overhead" from a day find looking for maximum value in a list of cell id
    -because have 1 day have 24 Hour ,have many Cell ID
    -I am begin for access
    -have more suggestion can to do
    best regards

  4. #4
    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,743
    ??? I don't understand the post either.

    Hour and Date are reserved words in Access.

    "Need to query result from access2007 find only "one maximum number" in hour per day every cell ID"????

    Suggest you give a sample -- show us some raw data, and the result you want.

  5. #5
    lotto009 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2015
    Posts
    3
    I would like keep result
    -One Maximum number in a day from hour
    -Than any cell ID list must be have one maximum number per day
    -In my file have many cellID I can not find result
    Could you advisor I att file as below photo
    Thanj you

  6. #6
    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,743
    Since all of your records have the same Date, there is no need to group by Date.

    I still don't understand the post.

    Here is a query to get MAX([SHO Overhead]) by Hour

    Code:
    SELECT Data1.Hour, Max(Data1.[SHO Overhead]) AS [MaxOfSHO Overhead]
    FROM Data1
    GROUP BY Data1.Hour;

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

Similar Threads

  1. converting hour into number
    By frustratedwithaccess in forum Queries
    Replies: 6
    Last Post: 03-04-2015, 03:57 PM
  2. Minimum and Maximum Number
    By mohanmoni in forum Queries
    Replies: 3
    Last Post: 02-04-2015, 01:55 PM
  3. Replies: 0
    Last Post: 02-09-2012, 05:43 PM
  4. Rounding number up to half hour
    By crxftw in forum Forms
    Replies: 2
    Last Post: 08-23-2011, 07:29 AM
  5. Replies: 2
    Last Post: 06-22-2010, 07:09 AM

Tags for this Thread

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