Jump to content

More SELECTS - my brain hurts


rseigel

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.