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!

NVL in where clause of greater/less then in oracle sql

Rajesh123Nov 13 2017 — edited Nov 13 2017

Hi All,

I have dynamical where clause in the package which will build where clause.

      IF p_trx_number_low is not null then

         lp_trx_num_low := ' and a.trx_number >= :p_trx_number_low ';

      END IF;

      IF p_trx_number_high is not null then

         lp_trx_num_high := ' and a.trx_number <= :p_trx_number_high ';

      END IF;

so i need to add NVL if the :p_trx_number_high is NULL then display all the Invoices.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 11 2017
Added on Nov 13 2017
2 comments
511 views