J
Janis
I need help on this query to fix the ambiguous outer join? I think I know
what the problem is but I don't know how to fix it. I have a self-join where
I want a parentNodeName showing when a node was split. The tableNode_1 is
the self-join. I added the tblNodeName_1 because there is more than one.
The problem could also be in the statistics table. How do I get the
utilization percentages on the parentNOde??
tia,
SELECT tblArea.AreaName, tblHeadend.Headend, tblNodeName.NodeName,
tblUtilization.[HSI_Utilization_%], tblUtilization.date AS Weekending,
tblNode_1.NodeID AS ParentNodeID, tblNodeName_1.NodeName AS ParentNodeName
FROM tblRouter AS tblRouter_1, (((tblArea INNER JOIN tblHeadend ON
tblArea.AreaID = tblHeadend.AreaID) INNER JOIN tblRouter ON
tblHeadend.HeadEndID = tblRouter.HeadEndID) INNER JOIN (tblPort INNER JOIN
tblTransmitter ON tblPort.PortID = tblTransmitter.PortID) ON
tblRouter.RouterID = tblPort.RouterID) INNER JOIN ((((tblNode LEFT JOIN
tblNode AS tblNode_1 ON tblNode.ParentNodeID = tblNode_1.NodeID) INNER JOIN
tblNodeName AS tblNodeName_1 ON tblNode_1.NodeID = tblNodeName_1.NodeID)
INNER JOIN tblNodeName ON tblNode.NodeID = tblNodeName.NodeID) INNER JOIN
tblUtilization ON tblNode.NodeID = tblUtilization.nodeID) ON
tblTransmitter.TransmitterID = tblNode.TransmitterID
GROUP BY tblArea.AreaName, tblHeadend.Headend
HAVING (((tblUtilization.date)=#8/3/2007#))
ORDER BY tblArea.AreaName, tblHeadend.Headend, tblRouter.RouterName,
tblPort.Port, tblTransmitter.Transmitter, tblNode.NodeID,
tblUtilization.date, tblNode_1.NodeID, tblNodeName_1.NodeName;
what the problem is but I don't know how to fix it. I have a self-join where
I want a parentNodeName showing when a node was split. The tableNode_1 is
the self-join. I added the tblNodeName_1 because there is more than one.
The problem could also be in the statistics table. How do I get the
utilization percentages on the parentNOde??
tia,
SELECT tblArea.AreaName, tblHeadend.Headend, tblNodeName.NodeName,
tblUtilization.[HSI_Utilization_%], tblUtilization.date AS Weekending,
tblNode_1.NodeID AS ParentNodeID, tblNodeName_1.NodeName AS ParentNodeName
FROM tblRouter AS tblRouter_1, (((tblArea INNER JOIN tblHeadend ON
tblArea.AreaID = tblHeadend.AreaID) INNER JOIN tblRouter ON
tblHeadend.HeadEndID = tblRouter.HeadEndID) INNER JOIN (tblPort INNER JOIN
tblTransmitter ON tblPort.PortID = tblTransmitter.PortID) ON
tblRouter.RouterID = tblPort.RouterID) INNER JOIN ((((tblNode LEFT JOIN
tblNode AS tblNode_1 ON tblNode.ParentNodeID = tblNode_1.NodeID) INNER JOIN
tblNodeName AS tblNodeName_1 ON tblNode_1.NodeID = tblNodeName_1.NodeID)
INNER JOIN tblNodeName ON tblNode.NodeID = tblNodeName.NodeID) INNER JOIN
tblUtilization ON tblNode.NodeID = tblUtilization.nodeID) ON
tblTransmitter.TransmitterID = tblNode.TransmitterID
GROUP BY tblArea.AreaName, tblHeadend.Headend
HAVING (((tblUtilization.date)=#8/3/2007#))
ORDER BY tblArea.AreaName, tblHeadend.Headend, tblRouter.RouterName,
tblPort.Port, tblTransmitter.Transmitter, tblNode.NodeID,
tblUtilization.date, tblNode_1.NodeID, tblNodeName_1.NodeName;