Look for CONNECT BY statement in Oracle doc, you can specify PRIOR id to link to row before current one.
http://databaseandstorage.blogspot.com http://gotodba.weebly.com
Forum Rules