Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Newbie: sql query
Hello,
Given the table below:
id | parent_id
1 | NULL 7 | 1 9 | 7
I want to get the id of the fisrt register (id=1) given any other id (7, 9 ,13, ..). It is posible to do it with a SQL query or do I need to use PL/SQL?
Thanks in advance,
Jose Luis.
Received on Wed Jun 28 2006 - 07:50:43 CDT