Hi,
I am using this query to generate a asset report ( in use workstation report with many informations ) :
SELECT MAX(deptDef.DEPTNAME) "Department",MAX(workstation.WORKSTATIONNAME) "Workstation",MAX(workstation.MANUFACTURER) "Manufacturer",MAX(workstation.MODEL) "Model",MAX(state.DISPLAYSTATE) "Asset State",MAX(workstation.LOGGEDUSER) "Last Logged In User",MAX(osInfo.OSNAME) "OS",MAX(deptDef.DEPTNAME) "Department",MAX(workstation.SERVICETAG) "Service Tag" FROM SystemInfo workstation LEFT JOIN Resources resource ON workstation.WORKSTATIONID=resource.RESOURCEID LEFT JOIN ResourceState state ON resource.RESOURCESTATEID=state.RESOURCESTATEID LEFT JOIN ResourceOwner rOwner ON resource.RESOURCEID=rOwner.RESOURCEID LEFT JOIN ResourceAssociation rToAsset ON rOwner.RESOURCEOWNERID=rToAsset.RESOURCEOWNERID LEFT JOIN DepartmentDefinition deptDef ON rOwner.DEPTID=deptDef.DEPTID LEFT JOIN OsInfo osInfo ON workstation.WORKSTATIONID=osInfo.WORKSTATIONID LEFT JOIN ResourceLocation resLocation ON workstation.WORKSTATIONID=resLocation.RESOURCEID WHERE ((state.DISPLAYSTATE = N'In Use' COLLATE Latin1_General_CI_AS) AND ((resLocation.SITEID IS NULL) OR (resLocation.SITEID IN (26109,24622,24621,24618,24612,24616,24614,24615,24613,24620,24619,24617,26410,18909,27314,18911,22509,18609,18610,27310,27313,23109,6909,304,5702,18910,18912,18611,18612,20413)))) AND ISSERVER=0 GROUP BY workstation.WORKSTATIONID ORDER BY 1, MAX(workstation.LOGGEDUSER)
I want to add in this report Purchase Order No. of each asset but I can't choose it on the list when I am creating the report.
Can someone help me to add this information in my report ?
Thanks
Denis