How to find 11th entry in SQL Access database table?

后端 未结 2 842
醉酒成梦
醉酒成梦 2020-12-07 06:15

How would I find the 11th entry in an Access SQL database table? I have to use the TOP function, and my query currently looks like this:

SELECT TOP 11 Pass         


        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 06:58

    SELECT TOP 11 Passenger.Name, SUM(Manifest.Ticketprice) AS [Total Amount Spent on Tickets]
    FROM Passenger INNER JOIN Manifest ON Passenger.PassengerNumber=Manifest.PassengerNumber
    GROUP BY Passenger.Name
    ORDER BY SUM(Manifest.Ticketprice) DESC LIMIT 1;
    

提交回复
热议问题