‎07-25-2011 12:44 PM
Solved! Go to Solution.
‎08-02-2011 01:11 PM
SELECT dbo.web40licenseview.LicenseidID, dbo.web40licenseview.License, dbo.web40licenseview.Nrlicenses, dbo.web40licenseview.Priceperlicense,
dbo.web40licenseview.Missing, dbo.web40licenseview.Price, dbo.web40licenseview.[number in use], dbo.tblsublicenses.softwareName,
dbo.web40usedsoftware.softwareVersion, dbo.web40usedsoftware.SoftwarePublisher, dbo.web40usedsoftware.[number in use] AS Subtotal
FROM dbo.web40licenseview INNER JOIN
dbo.tblLicenses ON dbo.web40licenseview.LicenseidID = dbo.tblLicenses.LicenseidID LEFT OUTER JOIN
dbo.web40usedsoftware INNER JOIN
dbo.tblsublicenses ON dbo.web40usedsoftware.softwareName = dbo.tblsublicenses.softwareName AND
ISNULL(dbo.web40usedsoftware.softwareVersion, '') LIKE ISNULL(dbo.tblsublicenses.softwareVersion, '') ON
dbo.tblLicenses.LicenseidID = dbo.tblsublicenses.LicenseidID
ORDER BY dbo.web40licenseview.License, dbo.tblsublicenses.softwareName, dbo.web40usedsoftware.softwareVersion
‎08-02-2011 01:11 PM
SELECT dbo.web40licenseview.LicenseidID, dbo.web40licenseview.License, dbo.web40licenseview.Nrlicenses, dbo.web40licenseview.Priceperlicense,
dbo.web40licenseview.Missing, dbo.web40licenseview.Price, dbo.web40licenseview.[number in use], dbo.tblsublicenses.softwareName,
dbo.web40usedsoftware.softwareVersion, dbo.web40usedsoftware.SoftwarePublisher, dbo.web40usedsoftware.[number in use] AS Subtotal
FROM dbo.web40licenseview INNER JOIN
dbo.tblLicenses ON dbo.web40licenseview.LicenseidID = dbo.tblLicenses.LicenseidID LEFT OUTER JOIN
dbo.web40usedsoftware INNER JOIN
dbo.tblsublicenses ON dbo.web40usedsoftware.softwareName = dbo.tblsublicenses.softwareName AND
ISNULL(dbo.web40usedsoftware.softwareVersion, '') LIKE ISNULL(dbo.tblsublicenses.softwareVersion, '') ON
dbo.tblLicenses.LicenseidID = dbo.tblsublicenses.LicenseidID
ORDER BY dbo.web40licenseview.License, dbo.tblsublicenses.softwareName, dbo.web40usedsoftware.softwareVersion
‎07-26-2011 02:57 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now