Hey all,
I'm trying to write some SQL that queries a mySQL database against two relational tables.
Consider two classic database tables: tblProducts and tblOrderLines
I would like to query the database for all products in the tblProducts table that are
NOT on a particular order in the tblOrderLines table in a
single query.
This is for a web application so i want as few round trips to the database as possible. I'm quite capable of doing it in multiple queries and a bit of business logic in ASP but i'd rather keep it clean in a single database query.
I had planned on showing you my workings so far but to be quite honest i've not got close yet
Can anyone shed some light?
Many Thanks