this doubt is very basic, however, after reading an answer for a given question I got fairly confused (I don't know why as it is a simple subject).
Consider this basic query:
SELECT * FROM emp WHERE ename BETWEEN ‘A’ AND ‘C’
The employees name returned will be those whose names start with A and B, and the explanation is as follows:
Here, a character column is compared against a string using the BETWEEN operator, which is equivalent to ename >= ‘A’ AND ename <= ‘C’. The name CLARK will not be included in this query, because ‘CLARK’ is > ‘C’.
Why is Clark considered greater than 'C' if in the explanation we have the statement: ename is less than or equal to 'C' ?
Thank you.