‎04-18-2013 03:01 AM
Solved! Go to Solution.
‎04-18-2013 01:37 PM
‎04-18-2013 10:04 PM
‎04-18-2013 08:41 PM
SELECT TOP 1000000 tblassets.assetid,
tblassets.assetname,
tsysassettypes.assettypeicon10 AS icon,
tblsoftwareuni.softwarename,
tblsoftwarehist.softwareversion,
tblassetcustom.department,
tblsoftwarehist.installdate
FROM tblassets
INNER JOIN tblsoftwarehist
ON tblassets.assetid = tblsoftwarehist.assetid
INNER JOIN tsysassettypes
ON tsysassettypes.assettype = tblassets.assettype
INNER JOIN tblsoftwareuni
ON tblsoftwareuni.softid = tblsoftwarehist.softid
INNER JOIN tblassetcustom
ON tblassets.assetid = tblassetcustom.assetid
WHERE tblsoftwarehist.softwareversion = '12.1.2015.2015'
ORDER BY tblsoftwarehist.installdate
‎04-18-2013 08:53 PM
harringg wrote:
Is there some SQL code that will return the tblsoftwarehist.installdate, which is shown as 04/08/2013 00:00:00, as 04/08/2013 in the Web Interface?
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblSoftwareUni.softwareName,
tblSoftwareHist.softwareVersion,
tblAssetCustom.Department,
Convert(nvarchar,tblSoftwareHist.Installdate,101) As InstallDate
From tblAssets
Inner Join tblSoftwareHist On tblAssets.AssetID = tblSoftwareHist.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftwareHist.softid
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tblSoftwareHist.softwareVersion = '12.1.2015.2015'
Order By Convert(nvarchar,tblSoftwareHist.Installdate,101)
‎04-18-2013 01:37 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now