M
MJS
I have a simple table 'Panel' w/ the followning schema: Source, Panel
Panel is a primary key
there is a 1:many relationship between Source and Panel, i.e., each source
(which is also a Panel) can have many Panels connected to it (re below):
I need a parametric query to that will return all panels fed from a
specified source, including all it's children. In this case, if I were to
query based on MSB, I would return all panels. However, if I were to query
based on HVA3, it would only return HVB3 and HA3.
Thanks,
MS
Panel, Source
LA1, HBA1
LC, HC
LM, HM
HA2, HVA2
LA2, HVA2
HA3, HVA3
HVB3, HVA3
LB, HVB
HE1, HVE1
LE1, HVE1
LE2, HVE2
LB2, LB
LC2, LC
LE4, LE1
LE3, LE2
HVA2, MSB
KH, MSB
KA, MSB
HM, MSB
HVA3, MSB
MCC1, MSB
HVA1, MSB
HC, MSB
DM, MSB
HVE1, MSB
HVB, MSB
MCC2, MSB
HVE2, MSB
MSB, Service
Panel is a primary key
there is a 1:many relationship between Source and Panel, i.e., each source
(which is also a Panel) can have many Panels connected to it (re below):
I need a parametric query to that will return all panels fed from a
specified source, including all it's children. In this case, if I were to
query based on MSB, I would return all panels. However, if I were to query
based on HVA3, it would only return HVB3 and HA3.
Thanks,
MS
Panel, Source
LA1, HBA1
LC, HC
LM, HM
HA2, HVA2
LA2, HVA2
HA3, HVA3
HVB3, HVA3
LB, HVB
HE1, HVE1
LE1, HVE1
LE2, HVE2
LB2, LB
LC2, LC
LE4, LE1
LE3, LE2
HVA2, MSB
KH, MSB
KA, MSB
HM, MSB
HVA3, MSB
MCC1, MSB
HVA1, MSB
HC, MSB
DM, MSB
HVE1, MSB
HVB, MSB
MCC2, MSB
HVE2, MSB
MSB, Service