Jump to content

How to get the biggest number


ted_chou12

Recommended Posts

i have a mysql table column storing purely figures:

eg. number

            1

            3

            5

            6

            2

 

How can you get the biggest number? so what I want the output to be is "6" since is the biggest number in all of the rows.

Thanks

Ted

Link to comment
https://forums.phpfreaks.com/topic/37888-how-to-get-the-biggest-number/
Share on other sites

... however, it doesnt seem to work with DATE formats

 

Ted - ask your real question the first time rather than asking a question about numbers. It'll get you to your answer faster and save people's time offering solutions to the problem that you don't actually have.  If you store dates in ISO format (yyyy-mm-dd) you will be able to sort them easily.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.