How to count no of records in table without count ?
Prabodha Kumar Sahoo, July 11, 2021 - 12:23 pm UTC
Can we get the number of records using rownum pseudocolumn.
Example :select max(rownum) from emp;
July 12, 2021 - 12:06 pm UTC
You can, but why bother? That's what count is for!
SUM
Jonathan Taylor, July 12, 2021 - 2:34 pm UTC
Or SUM(1) instead of COUNT.........but why you'd not use COUNT is beyond me.
July 12, 2021 - 5:29 pm UTC
Indeed