Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.
For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email email@example.com.
//get sales orders where attribute_1 is null or attribute_2 is null
$salesOrders = Mage::getModel(’sales/order’)->getCollection()
array(’attribute’ => ‘attribute_1’, ‘is’ => new Zend_Db_Expr(’null’)),
array(’attribute’ => ‘attribute_2’, ‘is’ => new Zend_Db_Expr(’null’))