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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Difference between Mod & Remainder functions in oracle..?

ApexLearnMar 12 2018 — edited Mar 12 2018

Hi All,

Can anyone explain the difference between mod & remainder functions in oracle.

Example1 :

Remainder :

SELECT remainder(37,5) as remainder FROM DUAL;

O/P : 2

Mod :

SELECT mod(37,5) as mod FROM DUAL;

O/P : 2

Example2 :

Remainder :

SELECT remainder(20,3) as remainder FROM DUAL;

O/P : -1

Mod :

SELECT mod(20,3) as mod FROM DUAL;

O/P : 2

From the above examples i could not able to understand the remainder function.

Thanks,

Hanu

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 9 2018
Added on Mar 12 2018
6 comments
1,409 views