Nested select statement.

        SELECT f.sub_object, p.title, p.sku
         FROM menu_table f, product_table p
         WHERE p.id = f.sub_object 
         OR p.id = f.owner
         AND f.type = 'product'
         AND f.sub_object NOT IN (SELECT x.ID from theTable WHERE ...)

Definately have to test for performance, perhaps use stored proc for performance sake.

>>> "Paul Giesenhagen" <[EMAIL PROTECTED]> 07/10/02 01:02PM >>>
Hello folks,

I have an easy one I am sure...

I am trying to build a query that will show all items that are not found.
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to