Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Select max(id) not returning correct value
Hi ,
I found that the select max(id) from tablename does not give me the correct value.
My current table has
ID
--
1
2
3
4
5
87
95
All this id is namually inserted. When i query
select max(id) from mytable;
It will not return 95 instead it will return value 5 ?
Anyone encounter this problem before?
JK
![]() |
![]() |