Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
SQL Essentials: MOD Function Explained
Overview
The MOD function is a mathematical operation that calculates the remainder when one number is divided by another. In simpler terms, it's like finding the leftover amount when you divide two numbers and want to know what's left over.
For instance, if you have 10 apples and want to distribute them equally among 3 friends, you give each friend 3 apples, and you are left with 1 apple. Here, the MOD function would give you the remainder, which is 1.
Understanding the Syntax
The MOD function is written as:
MOD(dividend, divisor)
- dividend: The number being divided.
- divisor: The number that divides the dividend.
Learn how to Refer A Member | Earn the Answer Accepter Badge | Be the Content Creator of the Quarter | Vote for the content you want to see!
Tagged:
0
