sql server - How to get max number in a column? -
i'm been trying find example of how max number in column.what want is, find max number of column in table_a, points(column). want output max number example
<cfoutput> <tr> <th><div align="right">#maxnumber#</div></th> </tr> </cfoutput>
not sure if way output, want 1 number(the max) , not array of column.
thanks help, new coldfusion.
you can top x
query , output them accordingly
<cfquery name="maxquery"> select top 2 points table_a order points desc </cfquery> <cfoutput query="maxquery"> #maxquery.currentrow# - #maxquery.points#<br> </cfoutput>
Comments
Post a Comment