How to get max number in a column?

前端 未结 3 1367
旧时难觅i
旧时难觅i 2021-01-26 16:40

I\'m been trying to find a example of how to get a max number in a column.What I want to do is, find the MAX number of a column in a TABLE_A, points(column). I want to output th

3条回答
  •  悲哀的现实
    2021-01-26 17:12

    You can do something like this to get the top X from your query and then output them accordingly

    
    SELECT TOP 2 points
    FROM table_a
    ORDER BY points DESC
    
    
    
      #maxQuery.currentRow# - #maxQuery.points#

提交回复
热议问题