jamkelvl Posted March 10, 2010 Share Posted March 10, 2010 Okay, so this is my current select statment... <?php // all other code omitted $select = "SELECT * FROM jobs WHERE work_order_number = '' && ship_to != 'Tatry Non Profit Housing Corp.' ORDER BY ship_to, unit_number"; ?> What I want to do is also check if work_order_number is equal to ANY po_number IN another tabled called pos. So like... <?php // all other code omitted $select = "SELECT * FROM jobs WHERE work_order_number = '' OR work_order_number = ANY(SELECT * po_number FROM pos) && ship_to != 'Tatry Non Profit Housing Corp.' ORDER BY ship_to, unit_number"; ?> Any help? Link to comment https://forums.phpfreaks.com/topic/194804-sql-noob-any-and-in-hmmm/ Share on other sites More sharing options...
fenway Posted March 15, 2010 Share Posted March 15, 2010 There is no question here. Link to comment https://forums.phpfreaks.com/topic/194804-sql-noob-any-and-in-hmmm/#findComment-1026472 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.