Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Report Builder Help?

Updated: 24 May 2010 | 4 comments
scottmd's picture
0 0 Votes
Login to vote

Asset management question here - I am a report novice, and I need to make a report which will give me a report showing the primary logged on user (which is a default report) combined with a computer make and model breakdown, the purpose of which is to show who in our organization needs to have thier base systems upgraded. What is the easiest way to make a useful list?

Comments

lotsill's picture
09
Oct
2008
0 Votes 0
Login to vote

Here is a quick query, it

Here is a quick query, it will give you model, serial number and primary user.

SELECT T1.[Computer Model] AS 'Computer Model', T1.[Serial Number] AS 'Serial Number', T0.[User] AS 'User' 
FROM [Inv_AeX_AC_Primary_User] T0 INNER JOIN [Inv_AeX_HW_Serial_Number] T1 ON T0.[_ResourceGuid] = T1.[_ResourceGuid] 
WHERE T1.[Serial Number] LIKE '%'

Steve Petrasek

scottmd's picture
09
Oct
2008
0 Votes 0
Login to vote

When I run a query with

When I run a query with that expression, it gives me an error - are there additional parameters?

Incorrect syntax near the keyword 'SELECT'.

SandyF's picture
09
Oct
2008
0 Votes 0
Login to vote

SQL Works

Maybe you had some superfluous character or line before the code when you cut and pasted the SQL into your report window.

Sandy Fletcher
IT Asset Management Consultant
http://www.velocegroup.com

Eshwar's picture
20
Oct
2008
3 Votes +3
Login to vote

working perfectly

The query is simply working fine. But i think we need to display unique records. For that i used DISTINCT and also MACHINE name just in case you want see that in the report

SELECT	DISTINCT(T0.[User]) AS 'User', T2.[Name] AS 'Machine Name', T1.[Computer Model] AS 'Computer Model',T1.[Serial Number] AS 'Serial Number' 
FROM [Inv_AeX_AC_Primary_User] T0 
INNER JOIN [Inv_AeX_HW_Serial_Number] T1 ON T0.[_ResourceGuid] = T1.[_ResourceGuid] 
JOIN vComputer T2 ON T1.[_ResourceGuid]  = T2.Guid
WHERE T1.[Serial Number] LIKE '%'
AND T0.[Month] =  datename(month, getdate())

Thanks,
Eshwar