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.

Querying Hardware Serial Numbers and Memory Module Information

Updated: 12 May 2008 | 1 comment
Eshwar's picture
+27 27 Votes
Login to vote

Did you know you could retrieve hardware serial numbers and memory module information from your Inventory Solution data? It's possible by joining [Inv_AeX_HW_Serial_Number] and [Inv_AeX_HW_Memory_Modules] tables with [Inv_AeX_AC_Identification].

Here's the syntax:

QUERY:

SELECT DISTINCT(ACI.[Name]) AS 'Machine Name', AHS.[Serial Number] AS 'Serial Number', MM.[Size], MM.[Type]
FROM [Inv_AeX_AC_Identification] ACI
INNER JOIN [Inv_AeX_HW_Serial_Number] AHS ON ACI.[_ResourceGuid] = AHS.[_ResourceGuid]
JOIN [Inv_AeX_HW_Memory_Modules] MM ON MM.[_ResourceGuid] = ACI.[_ResourceGuid]  
ORDER BY ACI.[Name]

Comments

ludovic_ferre's picture
09
Nov
2009
0 Votes 0
Login to vote

Nice query Eshwar, Wouldn't

Nice query Eshwar,

You may be a little better off with a set left joins there. This would ensure you show computers that have Serial Number or Memory Module information missing.

Now I am wondering if this would be a low or very low percentage of your standard result set?

In all cases, SQL rules :D


Ludovic FERRÉ
Principal Remote Product Specialist
Symantec 

1st Rule of Connect Club: Mark the post that helped you the most as a 'solution'. 2nd Rule of Connect Club:You must talk about Connect