rbragg Posted November 21, 2007 Share Posted November 21, 2007 In the following query, why would RECORD_COUNT still give me a null value instead of 0 if the db was empty? <?php $queryContract = " SELECT action_num, status, NVL(COUNT(*),0) AS RECORD_COUNT FROM schema.HEC_ACTION WHERE schema.HEC_ACTION.contract_num = '" . $_SESSION['contract'] . "' AND schema.HEC_ACTION.step_num = '" . $thisStep . "' GROUP BY action_num, status ORDER BY action_num, status"; ?> Link to comment https://forums.phpfreaks.com/topic/78290-nvlcount0/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.