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"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/78290-nvlcount0/ 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.