Hi,
Found the following SQL query in some legacy code.
SELECT nvl( count(*), 0 )
FROM some_table
WHERE some_condition
Since this is legacy code, I'm guessing it's been around since Oracle 7 and hasn't been touched since.
I have never seen "SELECT nvl( count(*), 0 )" before.
Can someone explain why it would be used?
Is there a difference between this construct and simply doing: select count(*)?
Thanks,
Avi.