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!!
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!!