SQL Language (MOSC)

MOSC Banner

Parent Child relationship SQL Query help

edited Sep 4, 2015 10:04AM in SQL Language (MOSC) 7 commentsAnswered

All,

I have a parent child relationship data distributed in 3 tables as described in the following

Components - Will have all the list of components in the system

relationships - Parent-child relationship data

parent_status - have the status of the parent(used on unused)

I am trying to query all the unique components for a given parent, following is the sample of data set

components:

drop table components;

create table components (component_id number, component_number varchar2(20));

REM INSERTING into COMPONENTS

SET DEFINE OFF;

Insert into COMPONENTS (COMPONENT_ID,COMPONENT_NUMBER) values (106002058,'2003474-009');

Insert into COMPONENTS (COMPONENT_ID,COMPONENT_NUMBER) values (112056559,'2010164-092');

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center