rseigel Posted July 30, 2015 Share Posted July 30, 2015 Thanks to everyone that's helped so far. I have another one I can't wrap my head around: I'm using: SELECT * FROM tmp_BF, ps_product WHERE tmp_BF.wholesale_price != (SELECT wholesale_price FROM ps_product) AND tmp_BF.wholesale_price = ps_product.wholesale_price I'm trying to find products that are in both tables where the wholesale price doesn't match. I realize I should be trying to use a JOIN - just not sure how to handle it. Any hints? Thanks, Ron Link to comment https://forums.phpfreaks.com/topic/297561-more-selects-my-brain-hurts/ Share on other sites More sharing options...
Barand Posted July 30, 2015 Share Posted July 30, 2015 I am guessing that the key to join on is supplier ref, as per your last post. SELECT * FROM tmp_BF INNER JOIN ps_product USING (supplier_referance) WHERE tmp_BF.wholesale_price <> ps_product.wholesale_price Link to comment https://forums.phpfreaks.com/topic/297561-more-selects-my-brain-hurts/#findComment-1517781 Share on other sites More sharing options...
rseigel Posted July 30, 2015 Author Share Posted July 30, 2015 Thanks very much, That works perfectly. There's a LOT to learn..... Link to comment https://forums.phpfreaks.com/topic/297561-more-selects-my-brain-hurts/#findComment-1517784 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.