Results 1 to 2 of 2
  1. #1
    Student123 is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Jun 2017
    Posts
    1

    _______________


    Trying to Run a few tables through the same query
    Last edited by Student123; 06-28-2017 at 09:35 PM.

  2. #2
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    something more like............. (I'm no expert!)


    Code:
    SELECT top 1 Student.Name, SUM(Test.Score) 
    
     from
     (SELECT TOP 21 Student.Name
            FROM Student INNER JOIN Test ON Student.StudentNumber =      Test.StudentNumber
           GROUP BY Student.Name)
    
     ORDER BY SUM(Manifest.Ticketprice) DESC
    The theory is get the top 21 values you need as a subquery in brackets
    then select the top 1 of those when they are ordered in the reverse order

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

Similar Threads

  1. Replies: 4
    Last Post: 03-16-2017, 02:06 PM
  2. Replies: 6
    Last Post: 03-24-2016, 12:56 PM
  3. Replies: 19
    Last Post: 01-24-2016, 07:48 PM
  4. Email command button coding needed
    By bradp1979 in forum Forms
    Replies: 3
    Last Post: 10-09-2015, 03:30 PM
  5. Replies: 1
    Last Post: 10-23-2014, 04:40 PM

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