My table named pictures has a column named pic and I'm wanting to get the highest number in that column. Each row has a unique number in pic and it goes up by 1 each row. But one or two rows won't have a number in the column and will have some text instead. Like grapes.
Here's an example of the table...
TABLE: pictures
___________________
| caption | pic |
|-------------------|
| some | 1 |
| random | 2 |
| thing | 3 |
| here |grapes |
|___________________|
So, how would I get the highest number in the column pic which would be 3?
Column pic is a varchar.