SQL excluding something from a list

Soldato
Joined
30 Sep 2005
Posts
16,678
I have a SQL query which returns all installed software across our network. Like this:

Adobe Lightroom
AMD Driver v2.2.1
Microsoft Office 2020
Nvidia CC

It's 3,330 lines and I want to start building up a list of things to exclude (like drivers, and stuff we don't want).

Rather than having a query like this

SELECT * FROM TABLE WHERE 'Title' NOT LIKE 'AMD Driver%' AND 'Title' NOT LIKE 'Nvidia%' AND.......AND......AND

Can I make the query a bit more elegant and reference perhaps a second table with everything we don't want?

Thanks!!
 
Right, got it working great thanks :D

Next little problem to solve...... the table looks like the top part of this image, but I'd like it to look like the bottom part

iCIxclS.jpg
 
Back
Top Bottom