Querying Hardware Serial Numbers and Memory Module Information
Updated: 12 May 2008 | 1 comment
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]
blog entry Filed Under:
The Endpoint Management Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the Endpoint Management community. Any authenticated Connect member can contribute to this blog.
Comments
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
Would you like to reply?
Login or Register to post your comment.