Try the following: SELECT quoteID from quotes WHERE NOT EXISTS (SELECT quoteID from Orders Where orders.quoteid = quote.quoteID)
Forum Rules