tags:

views:

461

answers:

1

myTable

UNID
 9
 10

UNID is a VARCHAR2

select max(UNID) from myTable returns the UNID with the highest lexicographic value (9).

how do i select the UNID with the highest integer value (10)?

+3  A: 

Doesn't

select max(to_number(UNID)) from yourTable

work?

jitter