Home > SQL

SQL Query To Filter Out Clients With Invalid System Enclosure Asset Tag Information

9. September 2008

This SQL Query will filter out all of the invalid system enclosure asset tags using NOT NULL, Not Like (<>) and NOT IN SQL commands.

SQL Query:

Select

SD.Name0 'Machine Name',

SD.User_Name0 'User Name',

SE.SmBiosAssetTag0 'Asset Tag'

From v_R_System SD

Join v_GS_System_Enclosure SE On SD.ResourceID = SE.ResourceID

Where SD.Client0 = '1'

And SE.SmBiosAssetTag0 Is Not Null

And SE.SmBiosAssetTag0 <> '%ÿ%'

And SE.SmBiosAssetTag0 not in ('Not Available', 'No Asset Information','')

SQL

Comments

6/3/2010 9:30:57 AM #
All I can say is keep it up.  This blog is so necessary in a time when everyone just wants to talk about how many people someones cheated on their wife with.  I mean, thanks for bringing intelligence back to the web, its been sorely missed.  Great stuff.  Please keep it coming!

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading