Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20490

Re: Update Scopes' Name with SQL Query

$
0
0

OK. So, I have another question. What is the SQL table relationships about the items (DHCP Server, Scope, Nodes etc). I tried to create below query but it is wrong. At least, can you help me about the relationship query? Maybe it is given an idea for possible update query.

 

SELECT     IPAM_Group_Scopes.Address AS ScopeAddress, IPAM_Group_Scopes.FriendlyName AS Scope_Name, Nodes.IP_Address, Nodes.Caption, Nodes.BirimID,

                      Nodes.BirimADI, IPAM_DhcpScopeDetails.ScopeId, IPAM_DhcpScopeDetails.GroupId AS DhcpScopeDetail_GroupID, IPAM_DhcpScopeDetails.SubnetId,

                      IPAM_Group_Scopes.ParentId

FROM         Nodes INNER JOIN

                      IPAM_DhcpScopeDetails ON Nodes.NodeID = IPAM_DhcpScopeDetails.NodeId INNER JOIN

                      IPAM_Group AS IPAM_Group_Scopes ON IPAM_DhcpScopeDetails.ScopeId = IPAM_Group_Scopes.ParentId

WHERE     (Nodes.NodeID = 964)


Viewing all articles
Browse latest Browse all 20490

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>