I want to retrieve the maximum invoice number from my invoice table where it returns the following when I select all records where you can clearly see the maximum invoice no as
It is a pseudo code, try and see it.
SELECT MAX(CAST(invoice_number AS SIGNED)) from invoice.
SELECT MAX(CAST(invoice_number AS SIGNED)) from invoice