Speak guys, I'm new here and I would like to know how I do to find parents and children in just one appointment:
Ex.: I have a table "tab_1" which has an FK with The "tab_2" table, and this FK of Tab_1 is the daughter column in Tab_2.
Then what I wanted was the following, an appointment that returns all the family both up (parents, grandparents), and down (children, grandchildren)
99] Thanks
from now
: Shock:
Att.
Find all parents.
-
- Moderador
- Posts: 2016
- Joined: Wed, 12 Jan 2005 3:25 pm
- Location: Araraquara - SP
Abraço,
Trevisolli
OCA Oracle PL/SQL Developer Certified Associate
OCP Oracle Forms Developer Certified Professional
Araraquara-SP
Trevisolli
OCA Oracle PL/SQL Developer Certified Associate
OCP Oracle Forms Developer Certified Professional
Araraquara-SP
-
- Rank: Estagiário Pleno
- Posts: 4
- Joined: Thu, 25 Oct 2007 1:35 pm
- Location: Rio de Janeiro - RJ
Raphael Porto
Oops, thanks for the help, but what is happening is the following, I can not see the family up and down, I only see the family up.
Is there any way out by making an PL ???
For Tab_2 I have only the information of the father and daughter, soon I seek for the daughter comes the father, and then I seek again in the column son with the value of the old father, and I think Grandmother, but how to make the whole family come in a single consultation ta brabo,
Abra
att.
Is there any way out by making an PL ???
For Tab_2 I have only the information of the father and daughter, soon I seek for the daughter comes the father, and then I seek again in the column son with the value of the old father, and I think Grandmother, but how to make the whole family come in a single consultation ta brabo,
Abra
att.
-
- Moderador
- Posts: 2016
- Joined: Wed, 12 Jan 2005 3:25 pm
- Location: Araraquara - SP
Abraço,
Trevisolli
OCA Oracle PL/SQL Developer Certified Associate
OCP Oracle Forms Developer Certified Professional
Araraquara-SP
Trevisolli
OCA Oracle PL/SQL Developer Certified Associate
OCP Oracle Forms Developer Certified Professional
Araraquara-SP
Brother,
An output is to do with dynamic SQL.
Make a search here, which will find interesting topics.
Surely you have how to do this search you want.
Whatever, send it there.
An output is to do with dynamic SQL.
Make a search here, which will find interesting topics.
Surely you have how to do this search you want.
Whatever, send it there.
-
- Rank: DBA Sênior
- Posts: 365
- Joined: Tue, 24 May 2005 2:24 pm
- Location: Araraquara - SP
Cristiano (Tineks)
Araraquara - SP
Araraquara - SP
Raphaelbi,
An idea would be to create a view tying the 2 tables, then you can set up a select using the "Connect by", that maybe a path ..
: In the forum you have information about Connect BY.
An idea would be to create a view tying the 2 tables, then you can set up a select using the "Connect by", that maybe a path ..
: In the forum you have information about Connect BY.
-
- Rank: Analista Júnior
- Posts: 90
- Joined: Thu, 23 Aug 2007 3:40 pm
- Location: São José do Rio Preto - SP
Kara ... put here the structure of your tables ... put there for us the script that you used for these tables! =) Vlw !!
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests