Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to ignore null in count analytical function

ravi29May 19 2022

Hi,
I have one query as below
select COUNT(*) OVER (PARTITION BY question_id) from t1 where survey_id=4;
question: table t1 has null values and query counting null values also. how can I ignore nulls in
count analytical function.

Thanks in Advance,

Comments
Post Details
Added on May 19 2022
9 comments
3,806 views