→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
07-31-2014 08:52 PM
Solved! Go to Solution.
08-01-2014 01:15 PM
Select Top 1000000 tblLicenses.softwareName As LicenseName,
tblSublicensesOrders.Orderdate,
tblSublicensesOrders.Nrlicenses,
tblSublicensesOrders.Priceperlicense,
tblSublicensesOrders.Ordernumber,
tblSublicensesOrders.Comments,
Convert(nvarchar,tblSublicensesOrders.Licensekey) As LicenseKey
From tblSublicensesOrders
Inner Join tblLicenses On tblLicenses.LicenseidID =
tblSublicensesOrders.LicenseidID
Where Convert(nvarchar,tblSublicensesOrders.Licensekey) Not In (Select
tblSerialnumber.ProductKey From tblSerialnumber)
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblSerialnumber.Product,
tblSerialnumber.ProductID,
tblSerialnumber.ProductKey
From tblAssets
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblSerialnumber On tblAssets.AssetID = tblSerialnumber.AssetID
Where
tblSerialnumber.ProductKey Not In (Select
Convert(nvarchar,tblSublicensesOrders.Licensekey) As LicenseKey
From tblSublicensesOrders) And tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName,
tblSerialnumber.Product
08-01-2014 02:51 PM
Select Top 1000000 tblOsLicenses.OS As LicenseName,
tblOssubLicensesOrders.Orderdate,
tblOssubLicensesOrders.Nrlicenses,
tblOssubLicensesOrders.Priceperlicense,
tblOssubLicensesOrders.Ordernumber,
tblOssubLicensesOrders.Comments,
Convert(nvarchar,tblOssubLicensesOrders.Licensekey) As LicenseKey
From tblOssubLicensesOrders
Inner Join tblOsLicenses On tblOsLicenses.OSLicenseidID =
tblOssubLicensesOrders.OSLicenseidID
Where Convert(nvarchar,tblOssubLicensesOrders.Licensekey) Not In (Select
tblSerialnumber.ProductKey From tblSerialnumber)
08-01-2014 01:15 PM
Select Top 1000000 tblLicenses.softwareName As LicenseName,
tblSublicensesOrders.Orderdate,
tblSublicensesOrders.Nrlicenses,
tblSublicensesOrders.Priceperlicense,
tblSublicensesOrders.Ordernumber,
tblSublicensesOrders.Comments,
Convert(nvarchar,tblSublicensesOrders.Licensekey) As LicenseKey
From tblSublicensesOrders
Inner Join tblLicenses On tblLicenses.LicenseidID =
tblSublicensesOrders.LicenseidID
Where Convert(nvarchar,tblSublicensesOrders.Licensekey) Not In (Select
tblSerialnumber.ProductKey From tblSerialnumber)
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblSerialnumber.Product,
tblSerialnumber.ProductID,
tblSerialnumber.ProductKey
From tblAssets
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblSerialnumber On tblAssets.AssetID = tblSerialnumber.AssetID
Where
tblSerialnumber.ProductKey Not In (Select
Convert(nvarchar,tblSublicensesOrders.Licensekey) As LicenseKey
From tblSublicensesOrders) And tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName,
tblSerialnumber.Product
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now