Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

alle VLANs mit Subnets

MS SQL-Server

SELECT 
  tbltag.strVlanId ID,
  tbltag.strName VLAN,
  tbltag.strDescription Beschreibung,
  CONCAT(tbltaggroup.strName, "/", tbltaggroup.intCIDR) Subnet
FROM
  tbltag
LEFT JOIN tbltaggroup
ON
  tbltag.intId_pk = tbltaggroup.intVlanId_fk
WHERE
  tbltag.strClassName = "TBoNisTagVLAN"
ORDER BY ID ASC

SQLite

SELECT 
  tbltag.strVlanId ID,
  tbltag.strName VLAN,
  tbltag.strDescription Beschreibung,
  tbltaggroup.strName || '/' || tbltaggroup.intCIDR Subnet
FROM
  tbltag
LEFT JOIN tbltaggroup
ON
  tbltag.intId_pk = tbltaggroup.intVlanId_fk
WHERE
  tbltag.strClassName = "TBoNisTagVLAN"
ORDER BY ID ASC
  • No labels