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? Quote Link to comment Share on other sites More sharing options...
fenway Posted March 15, 2010 Share Posted March 15, 2010 There is no question here. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.