/build/static/layout/Breadcrumb_cap_w.png

Report for mislabeled Computer Descriptions

Hi,

I'm trying to put together a MySql Query to determine which machines on my network have a improper computer description. Our standard is last name, first name in the description. I'm not sure it is even possible, but this so far has come close:

select distinct MACHINE.NAME as MNAME, MACHINE.SYSTEM_DESCRIPTION as MDESCRIPT
from (MACHINE,MACHINE_DISKS, MACHINE_NICS)
where MACHINE.ID = MACHINE_DISKS.ID
  and MACHINE.ID = MACHINE_NICS.ID
  and MACHINE.SYSTEM_DESCRIPTION not like '%, %'
order by MNAME

It may not be possible and I'm no SQL guru, so I'd figured I'd ask.

Thanks in advance for your help!!
Kirk

 


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
select NAME, SYSTEM_DESCRIPTION from MACHINE where SYSTEM_DESCRIPTION not like '%, %' order by NAME
Posted by: chucksteel 11 years ago
Red Belt
1

What do you get when you run the report? Your SQL includes some things it really doesn't need, here's a very basic statement that should find what you're looking for:

select NAME, SYSTEM_DESCRIPTION 
from MACHINE
where SYSTEM_DESCRIPTION not like '%, %'
order by NAME

 


Comments:
Posted by: kirkfondren 11 years ago
Orange Belt
0

Your amazing! That did it. Thanks!

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ