I have the following values in my table : JC-1-1 , JC-1-2 , JC-1-3, JC-1-4,JC-1-5,JC-1-6,JC-1-7,JC-1-8,JC-1-9,JC-1-10,JC-1-11,JC-1-12,JC-1-15
.
When I try to select the value using mysql MAX function as below :
SELECT MAX(job_card_no) AS max_job_card FROM `job_card`
I get the value returned as : JC-1-9 instead of JC-1-15 . How do I solve this issue?