Wrong, I'm afraid. As TS says there is no concept of "first" or "last" row in a relation.Originally Posted by dbasan
Pascal, what you need is a column that defines for you which row is "first" or "last" ... something like "insert_timestamp", so that you could ...
Code:select * from ( select * from my_table order by insert_timestamp ) where rownum = 1




Reply With Quote