Max id is working fine until the id Q/21/9 but as soon as the id increments to Q/21/10. SQL Server keeps returning Q/21/9 as max id.
See in image. Max id Q/21/10 exists.<