I have this table:
id value
AA000001 500
AA000002 1000
AA000003 1500
AA000004 2000
AA000005 2500
AA000006 3000
AA000007 3500
The type of id is a string and I use below sql statement to query my record:
SELECT sum(value), max(value), min(value) FROM my_table WHERE id BETWEEN 'AA000001' AND 'AA000007'
And it's works as expected. But I wonder if there are any exceptions in this query?
I'm using Oracle 10g Release 2 and 11g Release 2.
Thanks in advances.