The question is about searching name starting with letter 'G' in employees table. I am using Oracle 12c Version.
I came across the answer:
select *
from employees
where first_name >= 'G'
and first_name < 'H';
Could you please help me to understand the logic behind this.
'g' < 'harrison'is TRUE, becausegcomes beforehin the alphabet. the length of the strings is irrelevant. the characters are compared in lock step, as soon as there's s mismatch, you get the comparison results.