I have seen that greater than and less than operators can be applied on string values in SQL Server but I haven\'t figured out yet what logic is being applied here behind the sc